https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42159
--- Comment #37 from Niklas Hauser <niklas.hauser at arm dot com> --- (In reply to Iain Sandoe from comment #36) > The underlying issue is understood and we've worked around it to for the > case of "-static-libgcc" [PR80556]. Oh, we worked on this at the same time. The bug is gone for us on gcc trunk with your changes, thanks! > Please could you identify: > 1. the version of GCC you're testing? (the ones mentioned in the PR here > are well out of 'support'). Although there are probably work-around patches > that could be applied I was working with gcc trunk from early Sept. which didn't have your patch yet. > 2. the command line(s) Simply ./configure --disable-bootstrap --enable-languages=c,c++ plus the usual directory/path flags. Example is compiled with g++ -static-libgcc . > I have some patches in progress to tidy up the CRT/libgcc/unwinder stuff > (which do, essentially, remove the unwinder from the build for later darwin > - but leave them in place for Darwin9 etc.) Yes, I was going to suggest removing the unwinder code for 64b builds too, didn't work on any patches though. Did you apply your patch to trunk only? I didn't find it in the GCC 7 branch. Would you consider back porting it?