https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71286
--- Comment #2 from felix <felix.von.s at posteo dot de> --- mingw seems to do fine without it: on that target TARGET_ASM_ASSEMBLE_VISIBILITY (i.e. i386_pe_assemble_visibility) never emits any assembly code, and it only emits a warning if the visibility attribute was specified explicitly. The function was added in SVN revision 168763 (commit de0e5a52 in the git mirror). I believe support for LTO on mingw was first added in revision 158762 (4d992eb6 in git). LTO support was half-enabled for DJGPP in SVN revision 232290 (7aa50266 in git).