9 May 23:02
[v3] fix libstdc++/53263
François Dumont <frs.dumont <at> gmail.com>
2012-05-09 21:02:13 GMT
2012-05-09 21:02:13 GMT
Here is a patch for PR 53263.
I have also generalize the idea of performing checks on unsafe iterators
for better performance to several other debug checks.
2012-05-09 François Dumont <fdumont <at> gcc.gnu.org>
PR libstdc++/53263
* include/debug/safe_iterator.h (__gnu_debug::__base): Move...
* include/debug/functions.h: ... Here. Add debug function
overloads to perform checks on normal iterators when possible.
* include/debug/macros.h (__glibcxx_check_heap,
__glibcxx_check_heap_pred): Use __gnu_debug::__base on iterator range.
Tested under linux x86_64 debug mode.
Ok for trunk and 4.7 branch ?
François
Index: include/debug/functions.h =================================================================== --- include/debug/functions.h (revision 187292) +++ include/debug/functions.h (working copy) @@ -31,7 +31,8 @@ #define _GLIBCXX_DEBUG_FUNCTIONS_H 1 #include <bits/c++config.h>(Continue reading)
RSS Feed