OSDN Git Service

qemu/compiler: Define QEMU_ARTIFICIAL
authorRichard Henderson <rth@twiddle.net>
Tue, 16 Sep 2014 16:47:32 +0000 (09:47 -0700)
committerRichard Henderson <rth@redhat.com>
Mon, 29 Sep 2014 18:55:28 +0000 (14:55 -0400)
commit58099c80664a2feed354f2ff8014350180becb5d
tree57e3f4b3ea91d5bd0f294e37a2ce6813f5cdffb2
parent9c53889ba3b7bda8c8e7dcee253e0a54fc4288f9
qemu/compiler: Define QEMU_ARTIFICIAL

The combination of always_inline + artificial allows tiny inline
functions to be written that do not interfere with debugging.
In particular, gdb will not step into an artificial function.

The always_inline attribute was introduced in gcc 4.2,
and the artificial attribute was introduced in gcc 4.3.

Signed-off-by: Richard Henderson <rth@twiddle.net>
include/qemu/compiler.h