This is the mail archive of the libstdc++@gcc.gnu.org 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 <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.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
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]