diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-01 13:36:51 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-01 13:36:51 +0000 |
commit | c228f8a68d43a472a0779e9e4f839465cd877cd8 (patch) | |
tree | 956a65496ea40664056e495d47d7b48a8dc073b2 /libstdc++-v3/libsupc++/new | |
parent | 20e133d92e7e2ff3a7ab129023c45661b9a3fe9f (diff) | |
download | gcc-c228f8a68d43a472a0779e9e4f839465cd877cd8.tar.gz |
2007-02-01 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/14493
* libsupc++/typeinfo (bad_cast::what, bad_typeid::what): Declare.
* libsupc++/tinfo.cc: Define.
* libsupc++/exception (bad_exception::what): Declare.
* libsupc++/eh_exception.cc: Define.
(exception::what): Adjust, don't use typeid.
* libsupc++/new (bad_alloc::what): Declare.
* libsupc++/new_handler.cc: Define.
* config/abi/pre/gnu.ver: Export the new methods @3.4.9; adjust
existing 3.4.10 exports to 3.4.9.
* configure.ac: Adjust to 6.0.9.
* configure: Regenerate.
* testsuite/util/testsuite_abi.cc: Update.
* testsuite/18_support/14493.cc: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121461 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/libsupc++/new')
-rw-r--r-- | libstdc++-v3/libsupc++/new | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libstdc++-v3/libsupc++/new b/libstdc++-v3/libsupc++/new index eeed75309a9..26898bfc6fc 100644 --- a/libstdc++-v3/libsupc++/new +++ b/libstdc++-v3/libsupc++/new @@ -1,6 +1,7 @@ // The -*- C++ -*- dynamic memory management header. -// Copyright (C) 1994, 1996, 1997, 1998, 2000, 2001, 2002 +// Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +// 2003, 2004, 2005, 2006, 2007 // Free Software Foundation // This file is part of GCC. @@ -61,6 +62,8 @@ namespace std // This declaration is not useless: // http://gcc.gnu.org/onlinedocs/gcc-3.0.2/gcc_6.html#SEC118 virtual ~bad_alloc() throw(); + // See comment in eh_exception.cc. + virtual const char* what() const throw(); }; struct nothrow_t { }; |