https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60732
--- Comment #10 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to Mike Stump from comment #9) > So, I’m still left wondering if the difference in behavior between linux and > darwin is a bug in itself or not… Do we know which code or what change > gives rise to that? I don't think it's a bug. It seems that when the old ABI is specified - ELF toolchains emit both old and new manglings (using non-weak aliases). Darwin can't do that (at least, for now) so it only emits the mangling appropriate to the ABI rev. SO - we should test that all platforms emit the expected mangling for two representative ABI versions. I suppose that the ELF toolchains could also do a third test for the "bonus" additional mangling emitted. [[ that is unless it's a bug NOT to emit both - in which case Darwin has more of a challenge ]]