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: Matt Austern <austern at apple dot com>
- To: dewar at gnat dot com (Robert Dewar)
- Cc: gcc at gcc dot gnu dot org, ralmquist at ssi-corp dot com
- Date: Mon, 17 Mar 2003 10:01:57 -0800
- Subject: Re: -fobey-inline (was Re: gcc and inlining)
On Sunday, March 16, 2003, at 08:38 PM, Robert Dewar wrote:
In the future, I think that the compiler should have a better idea
about
what should be inlined than the programmer. Therefore, in the long
run
GCC should ignore the inline keyword.
Seems unlikely! This would require full interprocedural interunit
analysis
as well as frequency data. I think this is in the wishful thinking
depratment.
There are already compilers that do this. (State of the art "SPEC
warrior" compilers, of course.) gcc isn't one of them, and I agree
that gcc is unlikely to get all of these features any time soon, but
this really is production technology, not magical wishful thinking.
--Matt