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]
Other format: [Raw text]

Re: [libstdc++ PATCH] libstdc++ debug mode (second try)



On Friday, July 18, 2003, at 09:02 AM, Doug Gregor wrote:


This is my second attempt at the libstdc++ debug mode patch. Here is the capsule summary of the changes; read on for information on testing the patch.

Time goes by and patches get crufty. I'm attaching an updated patch; it has a bit more checking, but nothing drastic. All changes are extensions with the exception of the fix to the hashed associative container invalidation semantics, so if you've started looking at the second patch you haven't wasted your time. I can still commit the second patch and supply these bits separately.


Here is the list of changes for this version:

Version 3:
	* Checking for stream/streambuf iterators
	* Checking for heap algorithms
	* Checking for numeric algorithms
	* Checking for queue/priority_queue
	* Checking for stack
	* Checking for auto_ptr
	* Checking for basic_string (no safe iterators, but as many
	checks as we can do without ABI changes).
	* Checking for valarray
	* Fixed iterator invalidation rules for hashed containers
	* Added StrictWeakOrdering checks

=== To test the patch ===
Apply this patch and also my link_name patch (see http://gcc.gnu.org/ml/gcc-patches/2003-07/msg01915.html). Compile with -D_GLIBCXX_DEBUG.

Tested on i686-pc-linux-gnu and powerpc-apple-darwin; no new regressions when compiling in release mode, debug mode, or pedantic debug mode. Changelog and patch attached.


Doug

Attachment: debugmode.ChangeLog
Description: Binary data



Attachment: debugmode-v3.patch.gz
Description: GNU Zip compressed data


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