From: Andreas Schwab Date: Tue, 16 Jul 2002 20:26:29 +0000 (+0000) Subject: new (set_new_handler): Declare to not throw any exceptions. X-Git-Tag: releases/gcc-3.1.1~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61905cc8da6bd89eb9df66a58103835cb166c02f;p=thirdparty%2Fgcc.git new (set_new_handler): Declare to not throw any exceptions. * libsupc++/new (set_new_handler): Declare to not throw any exceptions. * libsupc++/new_handler.cc (set_new_handler): Likewise. From-SVN: r55494 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index dcd894e7fdbd..1564a6e6fe20 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-15 Rainer Orth * config/os/solaris/solaris2.5/bits/ctype_base.h (ctype_base): Fix diff --git a/libstdc++-v3/libsupc++/new b/libstdc++-v3/libsupc++/new index afa603a786d7..74f14b5a4a25 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 ed34bc8865d4..7c6aae08ec5a 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;