Index: src/arm/macro-assembler-arm.cc |
=================================================================== |
--- src/arm/macro-assembler-arm.cc (revision 2882) |
+++ src/arm/macro-assembler-arm.cc (working copy) |
@@ -53,20 +53,13 @@ |
// We do not support thumb inter-working with an arm architecture not supporting |
// the blx instruction (below v5t) |
-#if defined(USE_THUMB_INTERWORK) |
-#if !defined(__ARM_ARCH_5T__) && \ |
- !defined(__ARM_ARCH_5TE__) && \ |
- !defined(__ARM_ARCH_6__) && \ |
- !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" |
+#if defined(USE_THUMB_INTERWORK) && !defined(CAN_USE_THUMB_INSTRUCTIONS) |
+# error "for thumb inter-working we require architecture v5t or above" |
Søren Thygesen Gjesse
2009/09/15 13:47:35
Maybe change comment to "for thumb inter-working w
|
#endif |
-#endif |
// Using blx may yield better code, so use it when required or when available |
-#if defined(USE_THUMB_INTERWORK) || defined(__ARM_ARCH_5__) |
+#if defined(USE_THUMB_INTERWORK) || defined(CAN_USE_ARMV5_INSTRUCTIONS) |
#define USE_BLX 1 |
#endif |