new: Remove pragma interface.
authorBenjamin Kosnik <bkoz@redhat.com>
Tue, 13 Mar 2001 19:32:00 +0000 (19:32 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Tue, 13 Mar 2001 19:32:00 +0000 (19:32 +0000)
2001-03-13  Benjamin Kosnik  <bkoz@redhat.com>

* libsupc++/new: Remove pragma interface.
* libsupc++/typeinfo: Same.
* libsupc++/exception: Same.
* libsupc++/new_handler.cc: Remove pragma implementation.
(bad_alloc::~bad_alloc()): Add.
* libsupc++/exception_support.cc: Same.
(exception::~exception): Add.
(bad_exception::~bad_exception): Add.
* libsupc++/tinfo.cc: Same.
(bad_cast::~bad_cast): Add.
(bad_typeid::~bad_typeid): Add.

From-SVN: r40442

libstdc++-v3/ChangeLog
libstdc++-v3/libsupc++/exception
libstdc++-v3/libsupc++/exception_support.cc
libstdc++-v3/libsupc++/new
libstdc++-v3/libsupc++/new_handler.cc
libstdc++-v3/libsupc++/tinfo.cc
libstdc++-v3/libsupc++/typeinfo

index fd8a5da..fea829a 100644 (file)
@@ -1,3 +1,17 @@
+2001-03-13  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * libsupc++/new: Remove pragma interface.
+       * libsupc++/typeinfo: Same.
+       * libsupc++/exception: Same.
+       * libsupc++/new_handler.cc: Remove pragma implementation. 
+       (bad_alloc::~bad_alloc()): Add.
+       * libsupc++/exception_support.cc: Same.
+       (exception::~exception): Add.
+       (bad_exception::~bad_exception): Add.
+       * libsupc++/tinfo.cc: Same.
+       (bad_cast::~bad_cast): Add.
+       (bad_typeid::~bad_typeid): Add.
+
 2001-03-13  Phil Edwards  <pme@sources.redhat.com>
 
        * mkcheck.in:  Fix IFS regression for non-bash-2.01 hosts.
index fac73fb..3676a73 100644 (file)
@@ -31,8 +31,6 @@
 #ifndef __EXCEPTION__
 #define __EXCEPTION__
 
-#pragma interface "exception"
-
 extern "C++" {
 
 namespace std 
@@ -41,7 +39,7 @@ namespace std
   {
   public:
     exception() throw() { }
-    virtual ~exception() throw() { }
+    virtual ~exception() throw();
     virtual const char* what() const throw();
   };
 
@@ -49,7 +47,7 @@ namespace std
   {
   public:
     bad_exception() throw() { }
-    virtual ~bad_exception() throw() { }
+    virtual ~bad_exception() throw();
   };
 
   typedef void (*terminate_handler) ();
index ae62e53..48adafa 100644 (file)
@@ -29,8 +29,6 @@
 // invalidate any other reasons why the executable file might be covered by
 // the GNU General Public License.
 
-#pragma implementation "exception"
-
 #include "typeinfo"
 #include "exception"
 #include <cstddef>
@@ -377,6 +375,14 @@ std::uncaught_exception() throw()
   return p && ! p->caught;
 }
 
+std::exception::~exception() throw() { }
+
+std::bad_exception::~bad_exception() throw() { }
+
 const char* 
 std::exception::what() const throw()
 { return typeid (*this).name (); }
+
+
+
+
index 87c9d71..56cc183 100644 (file)
@@ -31,7 +31,6 @@
 #ifndef __NEW__
 #define __NEW__
 
-#pragma interface "new"
 #include <cstddef>
 #include <exception>
 
@@ -42,7 +41,8 @@ namespace std
   class bad_alloc : public exception 
   {
   public:
-    virtual const char* what() const throw() { return "bad_alloc"; }
+    bad_alloc() throw() { }
+    virtual ~bad_alloc() throw();
   };
 
   struct nothrow_t { };
index a6cf2a2..8c1628f 100644 (file)
@@ -28,7 +28,6 @@
 // invalidate any other reasons why the executable file might be covered by
 // the GNU General Public License.
 
-#pragma implementation "new"
 #include "new"
 
 const std::nothrow_t std::nothrow = { };
@@ -43,3 +42,5 @@ std::set_new_handler (new_handler handler)
   __new_handler = handler;
   return prev_handler;
 }
+
+std::bad_alloc::~bad_alloc() throw() { }
index 1d0c505..732609c 100644 (file)
@@ -27,8 +27,6 @@
 // invalidate any other reasons why the executable file might be covered by
 // the GNU General Public License.
 
-#pragma implementation "typeinfo"
-
 #include <cstddef>
 #include "tinfo.h"
 #include "new"                 // for placement new
@@ -41,6 +39,9 @@ std::type_info::
 ~type_info ()
 { }
 
+std::bad_cast::~bad_cast() throw() { }
+std::bad_typeid::~bad_typeid() throw() { }
+
 #if !__GXX_MERGED_TYPEINFO_NAMES
 
 // We can't rely on common symbols being shared between shared objects.
index bffe042..8d8133b 100644 (file)
@@ -30,8 +30,6 @@
 #ifndef __TYPEINFO__
 #define __TYPEINFO__
 
-#pragma interface "typeinfo"
-
 #include <exception>
 
 extern "C++" {
@@ -118,14 +116,14 @@ namespace std
   {
   public:
     bad_cast() throw() { }
-    virtual ~bad_cast() throw() { }
+    virtual ~bad_cast() throw();
   };
   
   class bad_typeid : public exception 
   {
   public:
     bad_typeid () throw() { }
-    virtual ~bad_typeid () throw() { }
+    virtual ~bad_typeid () throw();
   };
 } // namespace std