This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


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

[PATCH] Fix stl_deque.h for -fno-exceptions


Hi!

Ok to commit?

2001-10-30  Jakub Jelinek  <jakub@redhat.com>

	* include/bits/stl_deque.h (_M_new_elements_at_front): Use
	__throw_exception_again.
	(_M_new_elements_at_back): Likewise.

--- libstdc++-v3/include/bits/stl_deque.h.jj	Wed Oct 24 17:34:15 2001
+++ libstdc++-v3/include/bits/stl_deque.h	Tue Oct 30 17:16:02 2001
@@ -1342,7 +1342,7 @@ void deque<_Tp,_Alloc>::_M_new_elements_
   catch(...) {
     for (size_type __j = 1; __j < __i; ++__j)
       _M_deallocate_node(*(_M_start._M_node - __j));      
-    throw;
+    __throw_exception_again;
   }
 }
 
@@ -1360,7 +1360,7 @@ void deque<_Tp,_Alloc>::_M_new_elements_
   catch(...) {
     for (size_type __j = 1; __j < __i; ++__j)
       _M_deallocate_node(*(_M_finish._M_node + __j));      
-    throw;
+    __throw_exception_again;
   }
 }
 

	Jakub


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