* config/mips/mips.c (mips_global_pointer): Don't try to use $25.

From-SVN: r73094
This commit is contained in:
Richard Sandiford 2003-10-30 18:07:38 +00:00 committed by Richard Sandiford
parent 54ab330316
commit db964bded7
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-10-30 Richard Sandiford <rsandifo@redhat.com>
* config/mips/mips.c (mips_global_pointer): Don't try to use $25.
2003-10-30 Richard Henderson <rth@redhat.com>
* config/mips/mips.c (mips_build_builtin_va_list): Use runtime

View File

@ -6039,7 +6039,8 @@ mips_global_pointer (void)
for (regno = GP_REG_FIRST; regno <= GP_REG_LAST; regno++)
if (!regs_ever_live[regno]
&& call_used_regs[regno]
&& !fixed_regs[regno])
&& !fixed_regs[regno]
&& regno != PIC_FUNCTION_ADDR_REGNUM)
return regno;
return GLOBAL_POINTER_REGNUM;