aboutsummaryrefslogtreecommitdiff
path: root/include/qemu/compiler.h
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2017-04-20 18:30:21 +0100
committerPeter Maydell <peter.maydell@linaro.org>2017-04-20 18:33:33 +0100
commitfa54abb8c298f892639ffc4bc2f61448ac3be4a1 (patch)
tree8d4a8bcac95b2eda09cb78caf197c9913aaafd26 /include/qemu/compiler.h
parentda92ada855036c55bd08b0b0c64c7551d56f3586 (diff)
downloadqemu-fa54abb8c298f892639ffc4bc2f61448ac3be4a1.zip
qemu-fa54abb8c298f892639ffc4bc2f61448ac3be4a1.tar.gz
qemu-fa54abb8c298f892639ffc4bc2f61448ac3be4a1.tar.bz2
Drop QEMU_GNUC_PREREQ() checks for gcc older than 4.1
We already require gcc 4.1 or newer (for the atomic support), so the fallback codepaths for older gcc versions than that are now dead code and we can just delete them. NB: clang reports itself as gcc 4.2 (regardless of clang version), so clang won't be using the fallbacks either. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'include/qemu/compiler.h')
-rw-r--r--include/qemu/compiler.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/qemu/compiler.h b/include/qemu/compiler.h
index e0ce9ff..18e6100 100644
--- a/include/qemu/compiler.h
+++ b/include/qemu/compiler.h
@@ -24,17 +24,9 @@
#define QEMU_NORETURN __attribute__ ((__noreturn__))
-#if QEMU_GNUC_PREREQ(3, 4)
#define QEMU_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
-#else
-#define QEMU_WARN_UNUSED_RESULT
-#endif
-#if QEMU_GNUC_PREREQ(4, 0)
#define QEMU_SENTINEL __attribute__((sentinel))
-#else
-#define QEMU_SENTINEL
-#endif
#if QEMU_GNUC_PREREQ(4, 3)
#define QEMU_ARTIFICIAL __attribute__((always_inline, artificial))