Re: GCC 3.4 and broken inlining.

From: Alexandre Oliva
Date: Sat Jul 10 2004 - 16:28:05 EST


On Jul 9, 2004, Andi Kleen <ak@xxxxxx> wrote:

> Nigel Cunningham <ncunningham@xxxxxxxxxxxxx> writes:

> I think a better solution would be to apply the appended patch

Agreed.

> And then just mark the function you know needs to be inlined
> as __always_inline__.

It's probably a good idea to define such functions as `extern inline'
(another GCC extension), such that a definition of the function is
never emitted, and you get a linker error if the compiler somehow
fails to emit an error on a failure to inline the function.

--
Alexandre Oliva http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/