-
Notifications
You must be signed in to change notification settings - Fork 283
Closed
Description
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
Labels
No labels