OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
732a633
)
define QT_FASTCALL to hot attribute for architectures other than i386
author
Ivailo Monev
<xakepa10@gmail.com>
Mon, 7 Dec 2020 13:19:51 +0000
(13:19 +0000)
committer
Ivailo 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
patch
|
blob
|
history
diff --git
a/src/core/global/qglobal.h
b/src/core/global/qglobal.h
index
8eab812
..
bd15482
100644
(file)
--- a/
src/core/global/qglobal.h
+++ b/
src/core/global/qglobal.h
@@
-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