summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2011-12-29 15:12:59 -0200
committerQt by Nokia <qt-info@nokia.com>2012-04-24 16:38:02 +0200
commit1765329b8c15b855f787ef8079b4d021d06f7af4 (patch)
tree6dde8b0330c2454a06ee9d5c8f9cbabd23e5e40c /src/gui
parent0060b44d7045434583f14b5787211bafd045dd54 (diff)
Mark some functions as always_inline with GCC and ICC.
These functions are too critical to be called. They should always be inlined. Change-Id: I698dc6d83e02c323759c6d066f17993340bd53a5 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/painting/qdrawhelper_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/painting/qdrawhelper_p.h b/src/gui/painting/qdrawhelper_p.h
index 2e9f064951..8d67e69caa 100644
--- a/src/gui/painting/qdrawhelper_p.h
+++ b/src/gui/painting/qdrawhelper_p.h
@@ -71,6 +71,9 @@ QT_BEGIN_NAMESPACE
// RVCT doesn't like static template functions
# define Q_STATIC_TEMPLATE_FUNCTION
# define Q_STATIC_INLINE_FUNCTION static __forceinline
+#elif defined(Q_CC_GNU)
+# define Q_STATIC_TEMPLATE_FUNCTION static __attribute__((always_inline))
+# define Q_STATIC_INLINE_FUNCTION static inline __attribute__((always_inline))
#else
# define Q_STATIC_TEMPLATE_FUNCTION static
# define Q_STATIC_INLINE_FUNCTION static inline