From joel.stan:
authorerik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 19 May 2009 20:12:50 +0000 (20:12 +0000)
committererik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 19 May 2009 20:12:50 +0000 (20:12 +0000)
The preprocessor defines check for v5t and v5te.  This patch adds v7 and
v7-a which provide support for -march=armv7 and -mcpu=cortex-a8
respectively.
This is to support my work compiling chromium on arm, see
http://crbug.com/12028
http://codereview.chromium.org/115509

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2001 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/arm/macro-assembler-arm.cc

index ee82da197a87b7c92ef18f89c66adaed87f9d670..8b4f4e924fba84fd48f9b94120769cc7d7dbce33 100644 (file)
@@ -58,7 +58,10 @@ MacroAssembler::MacroAssembler(void* buffer, int size)
 // We do not support thumb inter-working with an arm architecture not supporting
 // the blx instruction (below v5t)
 #if defined(__THUMB_INTERWORK__)
-#if !defined(__ARM_ARCH_5T__) && !defined(__ARM_ARCH_5TE__)
+#if !defined(__ARM_ARCH_5T__) && \
+  !defined(__ARM_ARCH_5TE__) &&  \
+  !defined(__ARM_ARCH_7A__) &&   \
+  !defined(__ARM_ARCH_7__)
 // add tests for other versions above v5t as required
 #error "for thumb inter-working we require architecture v5t or above"
 #endif