https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109120
--- Comment #4 from David Malcolm <dmalcolm at gcc dot gnu.org> --- ...and thus presumably glibc 2.36 onwards uses the attribute on iconv_open.
dmalcolm at gcc dot gnu.org via Gcc-bugs Tue, 14 Mar 2023 09:16:54 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109120
--- Comment #4 from David Malcolm <dmalcolm at gcc dot gnu.org> --- ...and thus presumably glibc 2.36 onwards uses the attribute on iconv_open.