On Tuesday, February 25, 2003, at 03:00 PM, Daniel Jacobowitz wrote:
On Tue, Feb 25, 2003 at 02:33:14PM -0800, Michel LESPINASSE wrote:
On Tue, Feb 25, 2003 at 02:23:48PM -0800, Matt Austern wrote:
How can it be what existing code expects, when it's not what the
existing compiler does? I agree with you that "silently changing
semantics is not a very good idea", which is why we shouldn't
change inline from a hint into a directive except in a special
non-default compilation mode.
The gcc compilers previous to 3.2 used to almost always follow that
hint.
People are just starting to transition to 3.2 and are already
complaining.
In addition, it's the documented behavior - check what our manual says
about inline sometime.
Yes and no. One section, "an inline function is as fast as a macro",
implies that a function that's declared inline will always be
inlined (at least if you're using -O and if the function doesn't use
constructs that are unsuitable for inlining).