Thread (8 messages) 8 messages, 5 authors, 2017-01-25

Re: BUILD_BUG_ON(!__builtin_constant_p(feature)) breaks bcc trace tool

From: Arnd Bergmann <arnd@arndb.de>
Date: 2017-01-24 09:45:20

On Tue, Jan 24, 2017 at 7:15 AM, Michael Ellerman [off-list ref] wrote:
Hmm, in fact it seems because we don't define
CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING and CONFIG_OPTIMIZE_INLINING, we
get:

#define inline          inline          __attribute__((always_inline)) notrace

So in fact every inline function is marked always_inline all the time,
which seems dubious.

But still, it seems clang is ignoring always_inline.
I think the problem is that __builtin_constant_p() is usually false on
clang, at least for arguments
that are not constant pointers.

    Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help