[libcxxabi] r228806 - unwind: clean up straggling -Wundef warning
Saleem Abdulrasool
compnerd at compnerd.org
Tue Feb 10 21:20:45 PST 2015
Author: compnerd
Date: Tue Feb 10 23:20:44 2015
New Revision: 228806
URL: http://llvm.org/viewvc/llvm-project?rev=228806&view=rev
Log:
unwind: clean up straggling -Wundef warning
Conservatively define __ARM_ARCH to 4 in the case that it is undefined (e.g.
with GCC).
Modified:
libcxxabi/trunk/src/Unwind/assembly.h
Modified: libcxxabi/trunk/src/Unwind/assembly.h
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/Unwind/assembly.h?rev=228806&r1=228805&r2=228806&view=diff
==============================================================================
--- libcxxabi/trunk/src/Unwind/assembly.h (original)
+++ libcxxabi/trunk/src/Unwind/assembly.h Tue Feb 10 23:20:44 2015
@@ -62,6 +62,10 @@
SYMBOL_NAME(name):
#if defined(__arm__)
+#if !defined(__ARM_ARCH)
+#define __ARM_ARCH 4
+#endif
+
#if defined(__ARM_ARCH_4T__) || __ARM_ARCH >= 5
#define ARM_HAS_BX
#endif
More information about the cfe-commits
mailing list