Author: tkreuzer
Date: Sat Sep 1 17:01:05 2012
New Revision: 57214
URL:
http://svn.reactos.org/svn/reactos?rev=57214&view=rev
Log:
[INTRIN]
Mark intrinsics on gcc with __attribute__((artificial)) so that they appear as one unit in
the debug info. This way traces don't point inside the implementations, when they
cause an eception, but rather to the line where they are used.
Modified:
trunk/reactos/include/crt/mingw32/intrin.h
Modified: trunk/reactos/include/crt/mingw32/intrin.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/crt/mingw32/intrin…
==============================================================================
--- trunk/reactos/include/crt/mingw32/intrin.h [iso-8859-1] (original)
+++ trunk/reactos/include/crt/mingw32/intrin.h [iso-8859-1] Sat Sep 1 17:01:05 2012
@@ -30,8 +30,14 @@
#ifndef RC_INVOKED
+#ifdef __clang__
+#define __ATTRIBUTE_ARTIFICIAL
+#else
+#define __ATTRIBUTE_ARTIFICIAL __attribute__((artificial))
+#endif
+
#define _PRAGMA_WARNING_SUPPRESS(x) /* Only for MSVC */
-#define __INTRIN_INLINE extern __inline__
__attribute__((__always_inline__,__gnu_inline__))
+#define __INTRIN_INLINE extern __inline__
__attribute__((__always_inline__,__gnu_inline__)) __ATTRIBUTE_ARTIFICIAL
#ifndef _SIZE_T_DEFINED
#define _SIZE_T_DEFINED