https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114982
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Looks like the testcase should also be skipped for mingw/cygwin too. ``` /* External public symbols, which aren't weakref-s, have local-binding for PE targets. */ if (DECL_P (exp) && !lookup_attribute ("weakref", DECL_ATTRIBUTES (exp)) && TREE_PUBLIC (exp) && DECL_EXTERNAL (exp)) return true; ``` I will double that. Though those targets might not have __cxa_atexit in the first place so it might be less of an issue. Maybe cygwin does due to its usage of newlib.