[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/2] qemu/compiler: Define QEMU_ARTIFICIAL
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH 1/2] qemu/compiler: Define QEMU_ARTIFICIAL |
Date: |
Tue, 16 Sep 2014 10:58:47 -0700 |
On 16 September 2014 10:46, Richard Henderson <address@hidden> wrote:
> 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 <address@hidden>
clang can't handle the "artificial" attribute but it reports
itself as gcc 4.2 so that's OK.
Reviewed-by: Peter Maydell <address@hidden>
-- PMM