[Bug c/33763] [4.4/4.5/4.6/4.7 Regression] Bogus inlining failed in call to `xxx': redefined extern inline functions are not considered for inlining
joseph at codesourcery dot com
gcc-bugzilla@gcc.gnu.org
Thu Jan 12 14:38:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33763
--- Comment #28 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2012-01-12 14:35:58 UTC ---
On Thu, 12 Jan 2012, rguenther at suse dot de wrote:
> > I think extern inlines are sadly rather common to be deprecated...
>
> Well, not deprecating extern inlines but re-definitions in the
> same TU which miscompiles once the extern inline is used in that
> TU (ok, so you can say in 99% of all cases that won't happen).
I haven't tested it, but I'd expect extern inline + redefinition to be
occur in various cases building glibc, or any other library with extern
inlines in its headers. Though those cases may be less likely then to use
the redefined function in the same TU.
More information about the Gcc-bugs
mailing list