https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100486
--- Comment #73 from Christoph Reiter <reiter.christoph at gmail dot com> --- In a similar bug 105507 we figured out that the MSYS2 build was broken because it was linking libgcc both statically and dynamically via dependencies, and that breaks exceptions with dwarf-2. So in theory the above patch could be reverted. I can try building with it being reverted to confirm, if wanted.