Commit eb939872 by Richard Kenner

(CONDITIONAL_REGISTER_USAGE): Don't mark pic reg as fixed.

From-SVN: r9889
parent ffae286a
...@@ -344,21 +344,9 @@ extern int target_flags; ...@@ -344,21 +344,9 @@ extern int target_flags;
compiler's mitts completely off it. We don't bother to zero it out compiler's mitts completely off it. We don't bother to zero it out
of register classes. If neither TARGET_FPA or TARGET_68881 is set, of register classes. If neither TARGET_FPA or TARGET_68881 is set,
the compiler won't touch since no instructions that use these the compiler won't touch since no instructions that use these
registers will be valid. registers will be valid. */
Reserve PIC_OFFSET_TABLE_REGNUM (a5) for doing PIC relocation if #ifdef SUPPORT_SUN_FPA
position independent code is being generated by making it a
fixed register */
#ifndef SUPPORT_SUN_FPA
#define CONDITIONAL_REGISTER_USAGE \
{ \
if (flag_pic) \
fixed_regs[PIC_OFFSET_TABLE_REGNUM] = 1; \
}
#else /* defined SUPPORT_SUN_FPA */
#define CONDITIONAL_REGISTER_USAGE \ #define CONDITIONAL_REGISTER_USAGE \
{ \ { \
...@@ -378,8 +366,6 @@ extern int target_flags; ...@@ -378,8 +366,6 @@ extern int target_flags;
if (TEST_HARD_REG_BIT (x, i)) \ if (TEST_HARD_REG_BIT (x, i)) \
fixed_regs[i] = call_used_regs[i] = 1; \ fixed_regs[i] = call_used_regs[i] = 1; \
} \ } \
if (flag_pic) \
fixed_regs[PIC_OFFSET_TABLE_REGNUM] = 1; \
} }
#endif /* defined SUPPORT_SUN_FPA */ #endif /* defined SUPPORT_SUN_FPA */
......
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