Commits

Stefano Rivera  committed c4cd46b

There is no magic __ARM_ARCH__ integer. Just check for ARMv4

  • Participants
  • Parent commits 6441df6

Comments (0)

Files changed (1)

File rpython/translator/c/src/stacklet/switch_arm_gcc.h

-#if __ARM_ARCH__ >= 5
-# define call_reg(x) "blx " #x "\n"
-#elif defined (__ARM_ARCH_4T__)
+#if defined(__ARM_ARCH_4__) || defined (__ARM_ARCH_4T__)
 # define call_reg(x) "mov lr, pc ; bx " #x "\n"
 #else
-# define call_reg(x) "mov lr, pc ; mov pc, " #x "\n"
+/* ARM >= 5 */
+# define call_reg(x) "blx " #x "\n"
 #endif
 
 static void __attribute__((optimize("O3"))) *slp_switch(void *(*save_state)(void*, void*),