diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 7f6f583290a..93e04d20cd3 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2002-07-16 Andreas Schwab + + * libsupc++/new (set_new_handler): Declare to not throw any + exceptions. + * libsupc++/new_handler.cc (set_new_handler): Likewise. + 2002-07-16 Gabriel Dos Reis * include/Makefile.am (bits_headers): Remove slice.h diff --git a/libstdc++-v3/libsupc++/new b/libstdc++-v3/libsupc++/new index afa603a786d..74f14b5a4a2 100644 --- a/libstdc++-v3/libsupc++/new +++ b/libstdc++-v3/libsupc++/new @@ -62,7 +62,7 @@ namespace std * be of this type. */ typedef void (*new_handler)(); /// Takes a replacement handler as the argument, returns the previous handler. - new_handler set_new_handler(new_handler); + new_handler set_new_handler(new_handler) throw(); } // namespace std //@{ diff --git a/libstdc++-v3/libsupc++/new_handler.cc b/libstdc++-v3/libsupc++/new_handler.cc index ed34bc8865d..7c6aae08ec5 100644 --- a/libstdc++-v3/libsupc++/new_handler.cc +++ b/libstdc++-v3/libsupc++/new_handler.cc @@ -37,7 +37,7 @@ using std::new_handler; new_handler __new_handler; new_handler -std::set_new_handler (new_handler handler) +std::set_new_handler (new_handler handler) throw() { new_handler prev_handler = __new_handler; __new_handler = handler;