This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[PATCH] Fix stl_deque.h for -fno-exceptions
- To: bkoz at redhat dot com
- Subject: [PATCH] Fix stl_deque.h for -fno-exceptions
- From: Jakub Jelinek <jakub at redhat dot com>
- Date: Tue, 30 Oct 2001 17:11:16 +0100
- Cc: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Reply-To: Jakub Jelinek <jakub at redhat dot com>
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