https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88430
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 45202 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45202&action=edit gcc9-pr88430.patch For quadmath_weak.h it can be easily handled with the attached patch. There are additional 166 occurrences of warnings in gthr*.h, and some further ones in libgfortran. I'm worried about this warning though, because while in the libquadmath case the alias targets are declared next to it in adjacent header provided by the same library, in gthr*.h case it is a common example how a weakref is created for a system header provided function. For those one often doesn't know what exact attributes are used and it is quite hard to query that (configure grepping preprocessed source, what else?).