This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] libstdc++/9582
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 18 Feb 2003 12:03:54 +0100
- Subject: [v3] libstdc++/9582
Hi,
approved by Benjamin, trunk and 3_3.
Paolo.
///////////
2003-02-18 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/9582
* include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
diff -urN libstdc++-v3-orig/include/bits/stl_alloc.h libstdc++-v3/include/bits/stl_alloc.h
--- libstdc++-v3-orig/include/bits/stl_alloc.h 2003-02-16 12:22:29.000000000 +0100
+++ libstdc++-v3/include/bits/stl_alloc.h 2003-02-18 00:09:57.000000000 +0100
@@ -352,8 +352,6 @@
__atomic_add(&_S_force_new, 1);
else
__atomic_add(&_S_force_new, -1);
- // Trust but verify...
- assert(_S_force_new != 0);
}
if ((__n > (size_t) _MAX_BYTES) || (_S_force_new > 0))