summaryrefslogtreecommitdiffstats
path: root/libcxxabi
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2015-02-11 05:20:44 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2015-02-11 05:20:44 +0000
commit7ebbcd968bc07017d72286b6f03f9f58e2c77a83 (patch)
treee8c7148a847b3c9d4054441bbce339f847956d07 /libcxxabi
parentb5c3e56b38320e492064f7e6663168948e0e4856 (diff)
downloadbcm5719-llvm-7ebbcd968bc07017d72286b6f03f9f58e2c77a83.tar.gz
bcm5719-llvm-7ebbcd968bc07017d72286b6f03f9f58e2c77a83.zip
unwind: clean up straggling -Wundef warning
Conservatively define __ARM_ARCH to 4 in the case that it is undefined (e.g. with GCC). llvm-svn: 228806
Diffstat (limited to 'libcxxabi')
-rw-r--r--libcxxabi/src/Unwind/assembly.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxxabi/src/Unwind/assembly.h b/libcxxabi/src/Unwind/assembly.h
index b749d67167d..f46a24d0eed 100644
--- a/libcxxabi/src/Unwind/assembly.h
+++ b/libcxxabi/src/Unwind/assembly.h
@@ -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
OpenPOWER on IntegriCloud