ARM RETLDM fix.
Paul Brook
paul@codesourcery.com
Fri Feb 9 00:04:00 GMT 2007
The patch below fixes a typo in the RETLDM macro used by the ARM libgcc
assembly routines. This was introduced by my recent Thumb-2 merge. Somehow it
didn't get caught by my initial testing.
Tested with cross to arm-none-linux-gnueabi.
Applied to mainline.
Paul
2007-02-08 Paul Brook <paul@codesourcery.com>
* config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
special interworking needed.
Index: gcc/config/arm/lib1funcs.asm
===================================================================
--- gcc/config/arm/lib1funcs.asm (revision 162714)
+++ gcc/config/arm/lib1funcs.asm (working copy)
@@ -211,7 +211,7 @@ LSYM(Lend_fde):
# if defined(__thumb2__)
pop\cond {\regs, pc}
# else
- ldm\cond\dirn sp!, {\regs, lr}
+ ldm\cond\dirn sp!, {\regs, pc}
# endif
.endif
#endif
More information about the Gcc-patches
mailing list