OSDN Git Service

qemu/compiler: Wrap __attribute__((flatten)) in a macro
authorThomas Huth <thuth@redhat.com>
Wed, 26 Sep 2018 15:48:50 +0000 (17:48 +0200)
committerThomas Huth <thuth@redhat.com>
Wed, 17 Oct 2018 06:36:28 +0000 (08:36 +0200)
commit97ff87c0ed020c2a4b931146e142d67abe852e22
treeaa5c5de9ce476031ff56e27213f2cde13e769c09
parent957e8b34920a1404a1318b2e1ffa0726d40e0a9b
qemu/compiler: Wrap __attribute__((flatten)) in a macro

Older versions of Clang (before 3.5) and GCC (before 4.1) do not
support the "__attribute__((flatten))" yet. We don't care about
such old versions of GCC anymore, but since Clang 3.4 is still
used in EPEL for RHEL7 / CentOS 7, we should not use this attribute
directly but with a wrapper macro instead.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
fpu/softfloat.c
include/qemu/compiler.h