https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120958
--- Comment #21 from Richard Biener <rguenth at gcc dot gnu.org> --- A pragmatic solution might be to pattern-match (by name) some of the affected APIs and exclude them from the fnspec processing that causes the issue.