This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

[v3] debug mode default to off


Due to the resolution of 13294, I think it inappropriate to ship
libstdc++ in the current configuration. This morning I posted a patch to
unwind the libstdc++ parts of this work.

However, this patch was missing bits, fixed with this version.

This reverts the default namespace of STL to std, and removes the use of
namespace association in default libstdc++ includes. 

Interestingly, it is still possible to use the debug containers!

For instance, these bits in the libstdc++ testsuite will still work.
COMP.sh "-g" 23_containers/vector/invalidation/1.cc

COMP.sh "-g -D_GLIBCXX_DEBUG" 23_containers/vector/invalidation/1.cc

Later on, I'll add the list and tree definitions so that they work too.
Since these will be new symbols, they can be versioned in after a
release.

I'm surprised we didn't think of this approach before.

I think, very strongly, that this is the way to go. 

(I'm testing an alternate patch that simplifies c++config.h, and will
repost when that finishes.) This patch, however, is very close, and I
didn't want to delay.

tested x86/linux

-benjamin

Attachment: p.20040414-1.patch
Description: Text document


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