Skip to content

Remove the code bloat of verbose abort messages #215

@void2012

Description

@void2012

Hello! The libstdc++ has a verbose abort messaging system which demangles the type name for the current exception if it was catched. This severely bloats the binary even with -fno-exceptions because it's baked in the libstdc++.a.

Adding the --disable-libstdcxx-verbose to the GCC build configuration solves this
https://gcc.gnu.org/onlinedocs/libstdc++/manual/configure.html
But it's not the default option

If users want to enable verbose debugging messages, they can do it manually, as suggested in the libstdc++ manual:

#include <exception>

int main() 
{
  std::set_terminate(__gnu_cxx::__verbose_terminate_handler);
}

See StephanTLavavej/mingw-distro#35
Please consider adding this flag to the GCC build configuration. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions