Re: [PATCH RFC] x86: enforce inlining for atomics
From: Linus Torvalds
Date: Tue Apr 21 2015 - 20:57:09 EST
On Tue, Apr 21, 2015 at 3:57 PM, Hagen Paul Pfeifer <hagen@xxxxxxxx> wrote:
>
> Is it possible that gcc is bedeviled because of inline assembler
> parts which brings confuse the internal scoring system?
yes, I have this memory of having seen that before - the size
heuristics for gcc getting confused by inlining. I'm wondering if
maybe it uses the size of the string to approximate the size, or just
uses some random variable.
It might be a good idea to mark things that are basically just
wrappers around a single (or a couple of) asm instruction to be
always_inline.
Linus
--
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/