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)
- From: dewar at gnat dot com (Robert Dewar)
- To: dewar at gnat dot com, jbuck at synopsys dot com
- Cc: bernds at redhat dot com, gcc at gcc dot gnu dot org, geoffk at geoffk dot org
- Date: Mon, 17 Mar 2003 14:46:30 -0500 (EST)
- Subject: Re: -fobey-inline (was Re: gcc and inlining)
> I am well aware that the standard states that "inline" is advisory,
> but in a high-quality implementation this should be taken to just cover
> the cases where inlining the call is not possible or is extremely difficult.
> If the compiler can honor the user's request without jumping through
> too many hoops, it should do so.
A corollary of this is that you still should not *count* on inline
if it is necessary for correct semantics (in your framework, not the
standards). In this case the attribute should be used.