diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2014-04-14 14:05:18 -0700 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2014-04-14 14:53:18 -0700 |
commit | b33d0ddc123435be5e60ebb15a37b3bfb651dc7e (patch) | |
tree | 6dc236a151bf280b87ca710d25b7e4cbcf914dfc /binutils-2.24 | |
parent | f25603579c0a04b3d5099259cf54c5b3c8775b78 (diff) | |
download | toolchain_binutils-b33d0ddc123435be5e60ebb15a37b3bfb651dc7e.tar.gz toolchain_binutils-b33d0ddc123435be5e60ebb15a37b3bfb651dc7e.tar.bz2 toolchain_binutils-b33d0ddc123435be5e60ebb15a37b3bfb651dc7e.zip |
[2.24] Silence ARM as error "MOV Rd, Rs" two low regs with clang/armv5/thumb1
See 92337cf27b1497415e3f345ea9292e96ced2a8fa
Change-Id: Id8c37627f3a2e6ec904ac95139c144bd834e6e50
Diffstat (limited to 'binutils-2.24')
-rw-r--r-- | binutils-2.24/gas/config/tc-arm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/binutils-2.24/gas/config/tc-arm.c b/binutils-2.24/gas/config/tc-arm.c index e3e7ef28..698a0a6f 100644 --- a/binutils-2.24/gas/config/tc-arm.c +++ b/binutils-2.24/gas/config/tc-arm.c @@ -11130,9 +11130,16 @@ do_t_mov_cmp (void) results. Don't allow this. */ if (low_regs) { +/* Silence this error for now because clang generates "MOV" two low regs in + unified syntax for thumb1, and expects CPSR are not affected. This check + doesn't exist in binutils-2.21 with gcc 4.6. The thumb1 code generated by + clang will continue to have problem running on v5t but not on v6 and beyond. +*/ +#if 0 constraint (!ARM_CPU_HAS_FEATURE (cpu_variant, arm_ext_v6), "MOV Rd, Rs with two low registers is not " "permitted on this architecture"); +#endif ARM_MERGE_FEATURE_SETS (thumb_arch_used, thumb_arch_used, arm_ext_v6); } |