https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56038
--- Comment #15 from nightstrike <nightstrike at gmail dot com> --- (In reply to Oleg Tolmatcev from comment #13) > This one can be closed. It was not even a GCC bug, it seems. This is still an open issue. While it was worked around on the mingw side for specific functions, there is still a compiler issue as referenced at https://gcc.gnu.org/legacy-ml/gcc-patches/2010-03/msg00059.html. The correctness of applying extern "C" hasn't been agreed upon, but there was support at the time, and there is a patch attached to this PR to do so. The short version AIUI is that the inlining is creating a need for extern C that doesn't exist for other targets. Maybe others have a different read on that interpretation.
