فهرست منبع

compiler.h: remove QEMU_GNUC_PREREQ

When needed, the G_GNUC_CHECK_VERSION() glib macro can be used instead.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20201210134752.780923-14-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Marc-André Lureau 4 سال پیش
والد
کامیت
07b35a23c3
2فایلهای تغییر یافته به همراه0 افزوده شده و 12 حذف شده
  1. 0 11
      include/qemu/compiler.h
  2. 0 1
      scripts/cocci-macro-file.h

+ 0 - 11
include/qemu/compiler.h

@@ -11,17 +11,6 @@
 #define QEMU_STATIC_ANALYSIS 1
 #define QEMU_STATIC_ANALYSIS 1
 #endif
 #endif
 
 
-/*----------------------------------------------------------------------------
-| The macro QEMU_GNUC_PREREQ tests for minimum version of the GNU C compiler.
-| The code is a copy of SOFTFLOAT_GNUC_PREREQ, see softfloat-macros.h.
-*----------------------------------------------------------------------------*/
-#if defined(__GNUC__) && defined(__GNUC_MINOR__)
-# define QEMU_GNUC_PREREQ(maj, min) \
-         ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
-#else
-# define QEMU_GNUC_PREREQ(maj, min) 0
-#endif
-
 #define QEMU_NORETURN __attribute__ ((__noreturn__))
 #define QEMU_NORETURN __attribute__ ((__noreturn__))
 
 
 #define QEMU_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
 #define QEMU_WARN_UNUSED_RESULT __attribute__((warn_unused_result))

+ 0 - 1
scripts/cocci-macro-file.h

@@ -19,7 +19,6 @@
  */
  */
 
 
 /* From qemu/compiler.h */
 /* From qemu/compiler.h */
-#define QEMU_GNUC_PREREQ(maj, min) 1
 #define QEMU_NORETURN __attribute__ ((__noreturn__))
 #define QEMU_NORETURN __attribute__ ((__noreturn__))
 #define QEMU_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
 #define QEMU_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
 #define QEMU_SENTINEL __attribute__((sentinel))
 #define QEMU_SENTINEL __attribute__((sentinel))