summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/libsupc++/exception_support.cc
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-17 07:44:57 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-17 07:44:57 +0000
commit2f454f608f50bae184ca8ac0f0784f50f5182fdb (patch)
tree0cde8b75b22945d8c655cf156c6078e3c0c94a40 /libstdc++-v3/libsupc++/exception_support.cc
parent61162f64dd8d889b948d1300602e56beed6bf77e (diff)
downloadppe42-gcc-2f454f608f50bae184ca8ac0f0784f50f5182fdb.tar.gz
ppe42-gcc-2f454f608f50bae184ca8ac0f0784f50f5182fdb.zip
2001-01-16 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/1605 * include/bits/ios_base.h (ios_base::failure): Tighten up throw specs. * src/ios.cc (ios_base::failure): Make definitions match. * libsupc++/typeinfo (class bad_typeid): Add throw specs. (class bad_cast): Same. * libsupc++/exception (class exception): Add throw specs. * libsupc++/exception_support.cc (set_terminate): Add throw specs. (set_unexpected): Same. (uncaught_exception): Same. (what): Same. * docs/html/17_intro/C++STYLE (classname): Fix. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39087 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/libsupc++/exception_support.cc')
-rw-r--r--libstdc++-v3/libsupc++/exception_support.cc15
1 files changed, 9 insertions, 6 deletions
diff --git a/libstdc++-v3/libsupc++/exception_support.cc b/libstdc++-v3/libsupc++/exception_support.cc
index 1356259a509..f6ec5086876 100644
--- a/libstdc++-v3/libsupc++/exception_support.cc
+++ b/libstdc++-v3/libsupc++/exception_support.cc
@@ -1,5 +1,7 @@
// Functions for Exception Support for -*- C++ -*-
-// Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation
+
+// Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000,
+// 2001 Free Software Foundation
// This file is part of GNU CC.
@@ -56,7 +58,7 @@ static std::unexpected_handler __unexpected_func __attribute__((__noreturn__))
= __default_unexpected;
std::terminate_handler
-std::set_terminate (std::terminate_handler func)
+std::set_terminate (std::terminate_handler func) throw()
{
std::terminate_handler old = __terminate_func;
@@ -65,7 +67,7 @@ std::set_terminate (std::terminate_handler func)
}
std::unexpected_handler
-std::set_unexpected (std::unexpected_handler func)
+std::set_unexpected (std::unexpected_handler func) throw()
{
std::unexpected_handler old = __unexpected_func;
@@ -374,14 +376,15 @@ THROW_BAD_TYPEID ()
/* Has the current exception been caught? */
bool
-std::uncaught_exception ()
+std::uncaught_exception () throw()
{
cp_eh_info *p = CP_EH_INFO;
return p && ! p->caught;
}
-const char * std::exception::
-what () const
+const char *
+std::exception::
+what () const throw()
{
return typeid (*this).name ();
}
OpenPOWER on IntegriCloud