This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: string debug-mode solutions
Benjamin Kosnik <bkoz@redhat.com> writes:
| Given that, there seem to be four options for proceeding.
|
| a: punt, document that __gnu_debug::string preferred, reliable way
| b: document that for string, have to use -O1 or above
| c: document that for string, have to use -D_GLIBCXX_EXTERN_TEMPLATE=0
| d: fixup c++config so that -D_GLIBCXX_DEBUG automatically does c. This
| is the linkage that Doug intended when he was writing this sucker. The patch is
| simple, and is attached, but may only work for systems that support
| weak symbols.
|
| My suggestion is to do d.
|
| Thoughts?
optimizations should not change the semantics, so I think b is
disqualified. If we have to do c, then we should go with d.
Given the recurent issues with system with no weak symbol support I have
a preference for a, and looking for ways out of it.
-- Gaby