https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96939
--- Comment #6 from Richard Earnshaw <rearnsha at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #4) > Doesn't seem to be related to me, in the other PR everything is compiled > with one set of options and no target attribute is involved either. No, that's a completely different problem. The problem there is some calls to the back-end pass a fntype and some a fndecl. The ones with a fndecl can work out if a function is local and pick a different ABI, but the ones with only a type cannot. So we get inconsistent results.