Hi, This patch makes sure that visibility-option for hidden-inlines doesn't show any effect for pe-coff as for those targets no concept of hidden-visiblitly isn't present.
ChangeLog 2014-08-04 Kai Tietz <kti...@redhat.com> * decl2.c (determine_hidden_inline): Always fail for PE-COFF as there is no hidden visibility available. Tested for x86_64-w64-mingw32, i686-w64-mingw32, and i686-pc-cygwin. Ok for apply? Regards, Kai Index: decl2.c =================================================================== --- decl2.c (Revision 213543) +++ decl2.c (Arbeitskopie) @@ -2447,6 +2447,9 @@ determine_hidden_inline (tree decl) { return (visibility_options.inlines_hidden +#ifdef TARGET_PECOFF + && !TARGET_PECOFF +#endif /* Don't do this for inline templates; specializations might not be inline, and we don't want them to inherit the hidden visibility. We'll set it here for all inline instantiations. */