summaryrefslogtreecommitdiffstats
path: root/contrib/libstdc++/libsupc++/exception
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2007-05-19 01:25:07 +0000
committerkan <kan@FreeBSD.org>2007-05-19 01:25:07 +0000
commit7865836f4b0f698454c31b4593effcb032c22c1e (patch)
treeea6c2718dc1e45ed535d194df808ef31f0ebac92 /contrib/libstdc++/libsupc++/exception
parent1f9ea4d0a40cca64d60cf4dab152349da7b9dddf (diff)
downloadFreeBSD-src-7865836f4b0f698454c31b4593effcb032c22c1e.zip
FreeBSD-src-7865836f4b0f698454c31b4593effcb032c22c1e.tar.gz
GCC 4.2.0 release C++ standard library and runtime support code.
Diffstat (limited to 'contrib/libstdc++/libsupc++/exception')
-rw-r--r--contrib/libstdc++/libsupc++/exception25
1 files changed, 17 insertions, 8 deletions
diff --git a/contrib/libstdc++/libsupc++/exception b/contrib/libstdc++/libsupc++/exception
index 6a1a194..2046300 100644
--- a/contrib/libstdc++/libsupc++/exception
+++ b/contrib/libstdc++/libsupc++/exception
@@ -1,6 +1,7 @@
// Exception Handling support header for -*- C++ -*-
-// Copyright (C) 1995, 1996, 1997, 1998, 2000, 2001, 2002
+// Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+// 2004, 2005, 2006, 2007
// Free Software Foundation
//
// This file is part of GCC.
@@ -17,8 +18,8 @@
//
// You should have received a copy of the GNU General Public License
// along with GCC; see the file COPYING. If not, write to
-// the Free Software Foundation, 59 Temple Place - Suite 330,
-// Boston, MA 02111-1307, USA.
+// the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+// Boston, MA 02110-1301, USA.
// As a special exception, you may use this file as part of a free software
// library without restriction. Specifically, if other files instantiate
@@ -30,13 +31,16 @@
// the GNU General Public License.
/** @file exception
- * This header defines several types and functions relating to the
- * handling of exceptions in a C++ program.
+ * This is a Standard C++ Library header.
*/
#ifndef __EXCEPTION__
#define __EXCEPTION__
+#pragma GCC visibility push(default)
+
+#include <bits/c++config.h>
+
extern "C++" {
namespace std
@@ -68,6 +72,8 @@ namespace std
// This declaration is not useless:
// http://gcc.gnu.org/onlinedocs/gcc-3.0.2/gcc_6.html#SEC118
virtual ~bad_exception() throw();
+ // See comment in eh_exception.cc.
+ virtual const char* what() const throw();
};
/// If you write a replacement %terminate handler, it must be of this type.
@@ -100,8 +106,8 @@ namespace std
bool uncaught_exception() throw();
} // namespace std
-namespace __gnu_cxx
-{
+_GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
+
/** A replacement for the standard terminate_handler which prints more
information about the terminating exception (if any) on stderr. Call
@code
@@ -113,8 +119,11 @@ namespace __gnu_cxx
In 3.4 and later, this is on by default.
*/
void __verbose_terminate_handler ();
-} // namespace __gnu_cxx
+
+_GLIBCXX_END_NAMESPACE
} // extern "C++"
+#pragma GCC visibility pop
+
#endif
OpenPOWER on IntegriCloud