From: Nicholas Nethercote Date: Thu, 12 May 2005 13:45:56 +0000 (+0000) Subject: Update FAQ about GLIBCXX_FORCE_NEW name-change. X-Git-Tag: svn/VALGRIND_3_0_0~640 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0ed704cb75f4e54b77f95ef3658f8b840ee3bbc2;p=thirdparty%2Fvalgrind.git Update FAQ about GLIBCXX_FORCE_NEW name-change. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3678 --- diff --git a/FAQ.txt b/FAQ.txt index 855286aaaf..625c55cb42 100644 --- a/FAQ.txt +++ b/FAQ.txt @@ -169,9 +169,12 @@ so will probably slow down your program, sometimes drastically. with -D__USE_MALLOC. Beware! This is removed from gcc starting with version 3.3. -- With 3.2.2 and later, you should export the environment variable +- With gcc 3.2.2 and later, you should export the environment variable GLIBCPP_FORCE_NEW before running your program. +- With gcc 3.4 and later, that variable has changed name to + GLIBCXX_FORCE_NEW. + There are other ways to disable memory pooling: using the malloc_alloc template with your objects (not portable, but should work for gcc) or even writing your own memory allocators. But all this goes beyond the diff --git a/docs/xml/FAQ.xml b/docs/xml/FAQ.xml index ff8c087b18..fed9275c6d 100644 --- a/docs/xml/FAQ.xml +++ b/docs/xml/FAQ.xml @@ -234,10 +234,14 @@ This is removed from gcc starting with version 3.3. - With 3.2.2 and later, you should export the environment + With gcc 3.2.2 and later, you should export the environment variable GLIBCPP_FORCE_NEW before running your program. + + With gcc 3.4 and later, that variable has changed name to + GLIBCXX_FORCE_NEW. + There are other ways to disable memory pooling: using the