This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -fobey-inline (was Re: gcc and inlining)
Richard Earnshaw writes:
> >
> > -fobey-inline is more of a correctness issue than a performance issue
> > for the people who need it.
>
> No, it's a compile my buggy program issue.
>
> There is no guarantee in the standard that an "inline" function will be
> inlined.
Yes, but there are places where being able to guarantee inlining are
very useful. glibc has one in the shared library loader, and there
are places in a kernel where it is essential to inline (perhaps
because there is no stack) but people are forced to use macros if
inlining is not guaranteed. macros are bad for a bunch of reasons,
not the least of which is type safety.
Andrew.