This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: more non-useless destructors desired
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Paolo Carlini <paolo dot carlini at oracle dot com>
- Cc: theonetruekenny at yahoo dot com, libstdc++ at gcc dot gnu dot org
- Date: Tue, 05 May 2009 21:25:19 -0700
- Subject: Re: more non-useless destructors desired
- References: <813521.54070.qm@web51505.mail.re2.yahoo.com> <49C526B4.1090607@oracle.com>
Paolo Carlini wrote:
> first blush, I believe this change could be doable, because the
> destructors already exist and are exported by the library anyway, only
> as "W" instead of "T". Did you experiment already with actually
> declaring / defining such destructors in stdexcept / stdexcept.cc?
I agree that this should be a safe change, and a good optimization.
Existing applications will have weak definitions, but that's OK -- they
can be linked with a new library which provides strong definitions.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713