Commit fb14bc89 by Richard Earnshaw Committed by Richard Earnshaw

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
parent a30794da
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>
......
......@@ -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; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment