From 1765329b8c15b855f787ef8079b4d021d06f7af4 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Thu, 29 Dec 2011 15:12:59 -0200 Subject: [PATCH] Mark some functions as always_inline with GCC and ICC. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit These functions are too critical to be called. They should always be inlined. Change-Id: I698dc6d83e02c323759c6d066f17993340bd53a5 Reviewed-by: Samuel Rødal --- src/gui/painting/qdrawhelper_p.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/painting/qdrawhelper_p.h b/src/gui/painting/qdrawhelper_p.h index 2e9f064..8d67e69 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 -- 2.7.4