OSDN Git Service

define QT_FASTCALL to hot attribute for architectures other than i386
authorIvailo Monev <xakepa10@gmail.com>
Mon, 7 Dec 2020 13:19:51 +0000 (13:19 +0000)
committerIvailo Monev <xakepa10@gmail.com>
Mon, 7 Dec 2020 13:19:51 +0000 (13:19 +0000)
this will trigger compiler warning when used in function prototype
declarations but should be worth it

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/core/global/qglobal.h

index 8eab812..bd15482 100644 (file)
@@ -363,7 +363,7 @@ QT_END_INCLUDE_NAMESPACE
 #if defined(QT_ARCH_I386)
 #  define QT_FASTCALL __attribute__((regparm(3)))
 #else
-#  define QT_FASTCALL
+#  define QT_FASTCALL __attribute__((hot))
 #endif
 
 // This logic must match the one in qmetatype.h