r212511 - Headers: mark arm_acle.h with extern "C"

Saleem Abdulrasool compnerd at compnerd.org
Mon Jul 7 22:46:00 PDT 2014


Author: compnerd
Date: Tue Jul  8 00:46:00 2014
New Revision: 212511

URL: http://llvm.org/viewvc/llvm-project?rev=212511&view=rev
Log:
Headers: mark arm_acle.h with extern "C"

Although the functions are marked as always_inline, the compiler with which they
are used may not honour the extended attributes and emit them as functions.  In
such a case, indicate that they should have extern "C" linkage and should not be
mangled in C++ style if used within C++.

Modified:
    cfe/trunk/lib/Headers/arm_acle.h

Modified: cfe/trunk/lib/Headers/arm_acle.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/arm_acle.h?rev=212511&r1=212510&r2=212511&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/arm_acle.h (original)
+++ cfe/trunk/lib/Headers/arm_acle.h Tue Jul  8 00:46:00 2014
@@ -30,6 +30,10 @@
 
 #include <stdint.h>
 
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
 /* Miscellaneous data-processing intrinsics */
 
 static __inline__ uint32_t __attribute__((always_inline, nodebug))
@@ -140,4 +144,8 @@ static __inline__ uint32_t __attribute__
 }
 #endif
 
+#if defined(__cplusplus)
+}
+#endif
+
 #endif /* __ARM_ACLE_H */





More information about the cfe-commits mailing list