This is the mail archive of the mailing list for the libstdc++ 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]

Re: verbose terminate() on by default

On Dec 23, 2002, Gabriel Dos Reis <> wrote:

> OK.  Phil, please, would you mind moving __verbose_terminate_handler()
> definition to libstdc++/ and making its definition
> static?

And while at that move the definition of __terminate_handler and
__unexpected_handler into separate object files, such that they can be
individually overridden in static linking, without bringing in
unwanted code.  I don't really care about what the verbose handler
does, so trying to take out library calls from it is not the point.
Whatever it is, it is too much, if I overrode the definition of
__terminate_handler such that it called another function by default.

The idea is that, if I want to use a non-verbose terminate(), to save
on space, I can link with an object file that defines:

std::terminate_handler __cxxabiv1::__terminate_handler = std::abort;

This should be enough to prevent the to-be-default definition from
coming in and bringing in with it the new verbose terminate handler.

Alexandre Oliva   Enjoy Guarana', see
Red Hat GCC Developer                 aoliva@{,}
CS PhD student at IC-Unicamp        oliva@{,}
Free Software Evangelist                Professional serial bug killer

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