[Openmp-commits] [openmp] r246434 - D12403: Fix GCC warning 'always_inline function might not be inlinable'
Andrey Churbanov via Openmp-commits
openmp-commits at lists.llvm.org
Mon Aug 31 05:32:56 PDT 2015
Author: achurbanov
Date: Mon Aug 31 07:32:55 2015
New Revision: 246434
URL: http://llvm.org/viewvc/llvm-project?rev=246434&view=rev
Log:
D12403: Fix GCC warning 'always_inline function might not be inlinable'
Modified:
openmp/trunk/runtime/src/thirdparty/ittnotify/ittnotify.h
openmp/trunk/runtime/src/thirdparty/ittnotify/ittnotify_config.h
openmp/trunk/runtime/src/thirdparty/ittnotify/legacy/ittnotify.h
Modified: openmp/trunk/runtime/src/thirdparty/ittnotify/ittnotify.h
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/thirdparty/ittnotify/ittnotify.h?rev=246434&r1=246433&r2=246434&view=diff
==============================================================================
--- openmp/trunk/runtime/src/thirdparty/ittnotify/ittnotify.h (original)
+++ openmp/trunk/runtime/src/thirdparty/ittnotify/ittnotify.h Mon Aug 31 07:32:55 2015
@@ -179,10 +179,11 @@ The same ID may not be reused for differ
*/
#ifdef __STRICT_ANSI__
#define ITT_INLINE static
+#define ITT_INLINE_ATTRIBUTE __attribute__((unused))
#else /* __STRICT_ANSI__ */
#define ITT_INLINE static inline
+#define ITT_INLINE_ATTRIBUTE __attribute__((always_inline, unused))
#endif /* __STRICT_ANSI__ */
-#define ITT_INLINE_ATTRIBUTE __attribute__ ((always_inline, unused))
#endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */
/** @endcond */
Modified: openmp/trunk/runtime/src/thirdparty/ittnotify/ittnotify_config.h
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/thirdparty/ittnotify/ittnotify_config.h?rev=246434&r1=246433&r2=246434&view=diff
==============================================================================
--- openmp/trunk/runtime/src/thirdparty/ittnotify/ittnotify_config.h (original)
+++ openmp/trunk/runtime/src/thirdparty/ittnotify/ittnotify_config.h Mon Aug 31 07:32:55 2015
@@ -113,10 +113,11 @@
*/
#ifdef __STRICT_ANSI__
#define ITT_INLINE static
+#define ITT_INLINE_ATTRIBUTE __attribute__((unused))
#else /* __STRICT_ANSI__ */
#define ITT_INLINE static inline
+#define ITT_INLINE_ATTRIBUTE __attribute__((always_inline, unused))
#endif /* __STRICT_ANSI__ */
-#define ITT_INLINE_ATTRIBUTE __attribute__ ((always_inline, unused))
#endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */
/** @endcond */
Modified: openmp/trunk/runtime/src/thirdparty/ittnotify/legacy/ittnotify.h
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/thirdparty/ittnotify/legacy/ittnotify.h?rev=246434&r1=246433&r2=246434&view=diff
==============================================================================
--- openmp/trunk/runtime/src/thirdparty/ittnotify/legacy/ittnotify.h (original)
+++ openmp/trunk/runtime/src/thirdparty/ittnotify/legacy/ittnotify.h Mon Aug 31 07:32:55 2015
@@ -118,10 +118,11 @@
*/
#ifdef __STRICT_ANSI__
#define ITT_INLINE static
+#define ITT_INLINE_ATTRIBUTE __attribute__((unused))
#else /* __STRICT_ANSI__ */
#define ITT_INLINE static inline
+#define ITT_INLINE_ATTRIBUTE __attribute__((always_inline, unused))
#endif /* __STRICT_ANSI__ */
-#define ITT_INLINE_ATTRIBUTE __attribute__ ((always_inline, unused))
#endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */
/** @endcond */
More information about the Openmp-commits
mailing list