This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]