arm.h (CONDITIONAL_REGISTER_USAGE): Disable use of LR in Thumb code.

* arm.h (CONDITIONAL_REGISTER_USAGE): Disable use of LR in Thumb
code.

From-SVN: r73157
This commit is contained in:
Richard Earnshaw 2003-10-31 21:42:23 +00:00 committed by Richard Earnshaw
parent a30794da51
commit fb14bc892c
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2003-10-31 Richard Earnshaw <rearnsha@arm.com>
* arm.h (CONDITIONAL_REGISTER_USAGE): Disable use of LR in Thumb
code.
2003-10-31 Andreas Jaeger <aj@suse.de>,
Zack Weinberg <zack@codesourcery.com>

View file

@ -959,6 +959,12 @@ extern const char * structure_size_string;
fixed_regs[regno] = call_used_regs[regno] = 1; \
} \
\
/* The link register can be clobbered by any branch insn, \
but we have no way to track that at present, so mark \
it as unavailable. */ \
if (TARGET_THUMB) \
fixed_regs[LR_REGNUM] = call_used_regs[LR_REGNUM] = 1; \
\
if (TARGET_CIRRUS) \
{ \
for (regno = FIRST_ARM_FP_REGNUM; \