arm: Delete LOADREGS macro

There was only one user.  It's "condition" argument was used
for "ia" rather than an actual condition.  The apcs26 syntax
is almost certainly not needed, given current binutils requirements.
This commit is contained in:
Richard Henderson 2013-02-14 21:17:19 -08:00
parent 55668624cf
commit 92cc8e332b
3 changed files with 4 additions and 5 deletions

View File

@ -1,5 +1,8 @@
2013-03-06 Richard Henderson <rth@redhat.com> 2013-03-06 Richard Henderson <rth@redhat.com>
* sysdeps/arm/__longjmp.S (__longjmp): Use ldmia insn directly.
* sysdeps/arm/sysdep.h (LOADREGS): Remove.
* sysdeps/arm/arm-mcount.S (_mcount): Use push/pop mnemonics. * sysdeps/arm/arm-mcount.S (_mcount): Use push/pop mnemonics.
* sysdeps/arm/crti.S, sysdeps/arm/crtn.S: Likewise. * sysdeps/arm/crti.S, sysdeps/arm/crtn.S: Likewise.
* sysdeps/arm/dl-tlsdesc.S: Likewise. * sysdeps/arm/dl-tlsdesc.S: Likewise.

View File

@ -37,7 +37,7 @@ ENTRY (__longjmp)
cfi_undefined (r4) cfi_undefined (r4)
CHECK_SP (r4) CHECK_SP (r4)
#endif #endif
LOADREGS(ia, ip!, {v1-v6, sl, fp, sp, lr}) ldmia ip!, {v1-v6, sl, fp, sp, lr}
cfi_restore (v1) cfi_restore (v1)
cfi_restore (v2) cfi_restore (v2)
cfi_restore (v3) cfi_restore (v3)

View File

@ -35,8 +35,6 @@
/* APCS-32 doesn't preserve the condition codes across function call. */ /* APCS-32 doesn't preserve the condition codes across function call. */
#ifdef __APCS_32__ #ifdef __APCS_32__
#define LOADREGS(cond, base, reglist...)\
ldm##cond base,reglist
#ifdef __USE_BX__ #ifdef __USE_BX__
#define RETINSTR(cond, reg) \ #define RETINSTR(cond, reg) \
bx##cond reg bx##cond reg
@ -49,8 +47,6 @@
mov pc, _reg mov pc, _reg
#endif #endif
#else /* APCS-26 */ #else /* APCS-26 */
#define LOADREGS(cond, base, reglist...)\
ldm##cond base,reglist^
#define RETINSTR(cond, reg) \ #define RETINSTR(cond, reg) \
mov##cond##s pc, reg mov##cond##s pc, reg
#define DO_RET(_reg) \ #define DO_RET(_reg) \