define QT_FASTCALL to hot attribute for architectures other than i386

this will trigger compiler warning when used in function prototype
declarations but should be worth it

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2020-12-07 13:19:51 +00:00
parent 732a633e1b
commit b8bbab93b6

View 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