aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/arm/fcvt.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2020-12-10 17:47:44 +0400
committerPaolo Bonzini <pbonzini@redhat.com>2020-12-15 12:52:10 -0500
commit77d35c83d3bcabdc64e2e8a58d6ff0d546e65120 (patch)
treee10ac04bd18cc1575c74342531f1fcac46039dc1 /tests/tcg/arm/fcvt.c
parent53b5d954f21ba3e0472f6cd3fde4de0eba89b243 (diff)
downloadqemu-77d35c83d3bcabdc64e2e8a58d6ff0d546e65120.zip
qemu-77d35c83d3bcabdc64e2e8a58d6ff0d546e65120.tar.gz
qemu-77d35c83d3bcabdc64e2e8a58d6ff0d546e65120.tar.bz2
tests: remove GCC < 4 fallbacks
Since commit efc6c07 ("configure: Add a test for the minimum compiler version"), QEMU explicitely depends on GCC >= 4.8. (clang >= 3.4 advertizes itself as GCC >= 4.2 compatible) Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Acked-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20201210134752.780923-6-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/tcg/arm/fcvt.c')
-rw-r--r--tests/tcg/arm/fcvt.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/tcg/arm/fcvt.c b/tests/tcg/arm/fcvt.c
index 617626b..7ac47b5 100644
--- a/tests/tcg/arm/fcvt.c
+++ b/tests/tcg/arm/fcvt.c
@@ -73,11 +73,9 @@ static void print_int64(int i, int64_t num)
#ifndef SNANF
/* Signaling NaN macros, if supported. */
-# if __GNUC_PREREQ(3, 3)
-# define SNANF (__builtin_nansf (""))
-# define SNAN (__builtin_nans (""))
-# define SNANL (__builtin_nansl (""))
-# endif
+# define SNANF (__builtin_nansf (""))
+# define SNAN (__builtin_nans (""))
+# define SNANL (__builtin_nansl (""))
#endif
float single_numbers[] = { -SNANF,