diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2006-10-03 16:33:50 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2006-10-03 16:33:50 +0000 |
commit | bdcabb255cf539df9a75525ceda4697af7383ae7 (patch) | |
tree | 71b7c5777067534028ba3e2165690a25c6f0aad6 /libgloss/arm | |
parent | b3fc0d3bf55aba8a95ffeab6bc0267cf84250482 (diff) | |
download | newlib-bdcabb255cf539df9a75525ceda4697af7383ae7.zip newlib-bdcabb255cf539df9a75525ceda4697af7383ae7.tar.gz newlib-bdcabb255cf539df9a75525ceda4697af7383ae7.tar.bz2 |
2006-10-03 Jeff Johnston <jjohnstn@redhat.com>
* arm/linux-syscalls0.c: Rewrite bx insn architecture flag check to avoid use of __ARM_ARCH__.
Diffstat (limited to 'libgloss/arm')
-rw-r--r-- | libgloss/arm/linux-syscalls0.S | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libgloss/arm/linux-syscalls0.S b/libgloss/arm/linux-syscalls0.S index 7b1e82a..81e21fd 100644 --- a/libgloss/arm/linux-syscalls0.S +++ b/libgloss/arm/linux-syscalls0.S @@ -203,10 +203,11 @@ FUNC(_socketcall_tail) bl _socketcall pop { r3 } add sp, #16 -#if (__ARM_ARCH__ > 4) || defined(__ARM_ARCH_4T__) - bx r3 -#else +#if defined(__ARM_ARCH_2__) || defined(__ARM_ARCH_3__) \ + || defined(__ARM_ARCH_3M__) || defined(__ARM_ARCH_4__) mov pc, r3 +#else + bx r3 #endif SIZE(_socketcall_tail) |