https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100937
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WONTFIX
Status|UNCONFIRMED |RESOLVED
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>clang -fpic has always been allowing interprocedural optimizations for
>non-vague-linkage function definitions. FreeBSD uses clang and software works
>with no problem.
That does not mean clang is correct here.
clang breaks ELF assumptions and that is all I am going to say. If you want to
break ELF fine, FreeBSD can break those. But there is still a portability
issue between distros using different options like this.