This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[v3] libstdc++/3150



tested x86/linux

2001-11-30  Benjamin Kosnik  <bkoz@redhat.com>

	libstdc++/3150
	DR/266
	* libsupc++/exception (bad_exception::~bad_exception()): Remove
	declaration.
	* libsupc++/new (bad_alloc::~bad_alloc()): Remove.
	* libsupc++/typeinfo (bad_cast::~bad_cast()): Remove.
	(bad_typeid::~bad_typeid()): Remove.
	* libsupc++/tinfo.cc (bad_cast::~bad_cast()): Remove definition.
	(bad_typeid::~bad_typeid()): Same.
	* libsupc++/new_handler.cc (bad_alloc::~bad_alloc()): Same.
	* libsupc++/eh_exception.cc (bad_exception::~bad_exception()): Same.

	* include/bits/std_iomanip.h: Tweak.


Index: include/bits/std_iomanip.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/bits/std_iomanip.h,v
retrieving revision 1.4
diff -c -p -r1.4 std_iomanip.h
*** std_iomanip.h	2001/11/02 17:38:10	1.4
--- std_iomanip.h	2001/12/01 04:51:59
*************** namespace std
*** 78,84 ****
    struct _Setiosflags { ios_base::fmtflags _M_mask; };
  
    inline _Setiosflags 
!   setiosflags (ios_base::fmtflags __mask)
    { 
      _Setiosflags __x; 
      __x._M_mask = __mask; 
--- 78,84 ----
    struct _Setiosflags { ios_base::fmtflags _M_mask; };
  
    inline _Setiosflags 
!   setiosflags(ios_base::fmtflags __mask)
    { 
      _Setiosflags __x; 
      __x._M_mask = __mask; 
*************** namespace std
*** 105,111 ****
    struct _Setbase { int _M_base; };
  
    inline _Setbase 
!   setbase (int __base)
    { 
      _Setbase __x; 
      __x._M_base = __base; 
--- 105,111 ----
    struct _Setbase { int _M_base; };
  
    inline _Setbase 
!   setbase(int __base)
    { 
      _Setbase __x; 
      __x._M_base = __base; 
*************** namespace std
*** 216,223 ****
        __os.width(__f._M_n); 
        return __os; 
      }
- 
  } // namespace std
- 
- #endif	/* __IOMANIP */
  
--- 216,221 ----
        __os.width(__f._M_n); 
        return __os; 
      }
  } // namespace std
  
+ #endif	
Index: libsupc++/eh_exception.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/libsupc++/eh_exception.cc,v
retrieving revision 1.1
diff -c -p -r1.1 eh_exception.cc
*** eh_exception.cc	2001/03/28 11:04:50	1.1
--- eh_exception.cc	2001/12/01 04:52:02
***************
*** 35,42 ****
  
  std::exception::~exception() throw() { }
  
- std::bad_exception::~bad_exception() throw() { }
- 
  const char* 
  std::exception::what() const throw()
  {
--- 35,40 ----
Index: libsupc++/exception
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/libsupc++/exception,v
retrieving revision 1.8
diff -c -p -r1.8 exception
*** exception	2001/11/23 17:36:43	1.8
--- exception	2001/12/01 04:52:05
*************** namespace std 
*** 62,68 ****
    {
    public:
      bad_exception() throw() { }
-     virtual ~bad_exception() throw();
    };
  
    /// If you write a replacement %terminate handler, it must be of this
type.
--- 62,67 ----
Index: libsupc++/new
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/libsupc++/new,v
retrieving revision 1.5
diff -c -p -r1.5 new
*** new	2001/07/11 19:35:49	1.5
--- new	2001/12/01 04:52:05
*************** namespace std 
*** 50,56 ****
    {
    public:
      bad_alloc() throw() { }
-     virtual ~bad_alloc() throw();
    };
  
    struct nothrow_t { };
--- 50,55 ----
Index: libsupc++/new_handler.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/libsupc++/new_handler.cc,v
retrieving revision 1.3
diff -c -p -r1.3 new_handler.cc
*** new_handler.cc	2001/03/13 19:32:00	1.3
--- new_handler.cc	2001/12/01 04:52:06
*************** std::set_new_handler (new_handler handle
*** 42,46 ****
    __new_handler = handler;
    return prev_handler;
  }
- 
- std::bad_alloc::~bad_alloc() throw() { }
--- 42,44 ----
Index: libsupc++/tinfo.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/libsupc++/tinfo.cc,v
retrieving revision 1.7
diff -c -p -r1.7 tinfo.cc
*** tinfo.cc	2001/11/23 16:29:02	1.7
--- tinfo.cc	2001/12/01 04:52:14
*************** std::type_info::
*** 39,47 ****
  ~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.
--- 39,44 ----
Index: libsupc++/typeinfo
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/libsupc++/typeinfo,v
retrieving revision 1.9
diff -c -p -r1.9 typeinfo
*** typeinfo	2001/11/23 16:29:02	1.9
--- typeinfo	2001/12/01 04:52:15
*************** namespace std 
*** 129,135 ****
    {
    public:
      bad_cast() throw() { }
-     virtual ~bad_cast() throw();
    };
    
    /** If you use a NULL pointer in a @c typeid expression, this is
thrown.  */
--- 129,134 ----
*************** namespace std 
*** 137,143 ****
    {
    public:
      bad_typeid () throw() { }
-     virtual ~bad_typeid () throw();
    };
  } // namespace std
  
--- 136,141 ----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]