aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/libsupc++
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2002-07-16 08:28:40 +0000
committerAndreas Schwab <schwab@suse.de>2002-07-16 08:28:40 +0000
commit640d00e850dc77ecda2490c355d0145514b0f789 (patch)
tree80e5d2ae35f0420b5a9ae01341ba4a6b4d520ae3 /libstdc++-v3/libsupc++
parent3a2de4e72aeca390af78df95afca3597ff70e129 (diff)
* libsupc++/new (set_new_handler): Declare to not throw any
exceptions. * libsupc++/new_handler.cc (set_new_handler): Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@55480 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/libsupc++')
-rw-r--r--libstdc++-v3/libsupc++/new2
-rw-r--r--libstdc++-v3/libsupc++/new_handler.cc2
2 files changed, 2 insertions, 2 deletions
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;