]> granicus.if.org Git - clang/commitdiff
Headers: mark arm_acle.h with extern "C"
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 8 Jul 2014 05:46:00 +0000 (05:46 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 8 Jul 2014 05:46:00 +0000 (05:46 +0000)
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++.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212511 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/arm_acle.h

index ef8de378879ee4cd2c685428575bc09275ec9856..d706745ad592dc2855bed2554d5bee48af23800e 100644 (file)
 
 #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__((always_inline, nodebug))
 }
 #endif
 
+#if defined(__cplusplus)
+}
+#endif
+
 #endif /* __ARM_ACLE_H */