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: [PATCH] Slightly better way to __USE_MALLOC


On Wed, Oct 09, 2002 at 01:49:11AM -0500, Benjamin Kosnik wrote:
> 
> This is a very interesting patch. I'll let Phil and Loren comment, but I
> think this is a good idea. Thanks for sharing it.

You're most welcome.  I'd like to share more.  If I knew
off-hand how to do more with configure, I'd probably have gone
further.  Perhaps I'll find the time to learn and followthrough. :)

> You might want to document the --enable flag in configopts.html. Notice
> that most of the ABI breaking configure flags are explicitly marked.
> This option should be as well.

I'm attaching a patch with this documentation.  Am I being too
verbose?  This patch is against the latest CVS revision of the docs.

> > rebuilt the library (and found my bug quite quickly with "mpatrol",
> > BTW), 
> 
> mpatrol?

I actually stumbled upon it by near accident.  It's a LGPL'ed
near-equivalent to Purify (at least with respect to heap
allocations).  I personally like it better so far.  Here's a link.

http://www.cbmamiga.demon.co.uk/mpatrol/

Click on the not-entirely-obvious "Online Documentation" image near
the bottom of the page to see the very extensive manual.

> At some point, something like this should be done in a more general way
> so that an un-optimized, debug version of libstdc++ could be built and
> lurk for later use. It seems to be generally useful, both for debugging
> and use with other tools like valgrind, etc.

That sounds very useful.  I plan to generate the debug version by
hand for now.  Maybe doing that a few times will reveal how it can be
automated :)

> Looks pretty good to me.

Thanks!  Glad to be able to contribute even a little.

-- 
------------------------------------------------------------------
Brad Spencer - spencer@infointeractive.com - "It's quite nice..."
Systems Architect | InfoInterActive Corp. | A Canadian AOL Company

Attachment: gcc-3.2-libstdc++-v3-use-malloc-documentation.patch
Description: Text document


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