This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: verbose terminate() on by default
On Mon, Dec 23, 2002 at 05:24:35PM -0200, Alexandre Oliva wrote:
> On Dec 23, 2002, Gabriel Dos Reis <gdr@integrable-solutions.net> wrote:
>
> > Alexandre Oliva <aoliva@redhat.com> writes:
>
> > | Precisely, but this won't prevent the then-unused junk from taking up
> > | space, in case the program references anything else from the same
> > | module so as to bring it in.
>
> > If thge program doesn't reference __verbose_terminate_handler, then it
> > won't be brought in.
>
> If the program references *any* symbol in the module that references
> __verbose_terminate_handle, it will be brought in, even if the program
> overrides the symbol that actually references
> __verbose_terminate_handle. The program would have to override the
> __verbose_terminate_handle() function too, which is non-portable and
> unintuitive.
Step back... Phil, your most recent patch just changed eh_terminate.cc,
if I'm looking at the right message. That's in libsupc++. But
verbose_terminate is in libstdc++. I see a problem there; libsupc++
should not have link dependency on libstdc++, that defeats the point,
doesn't it?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer