From bb5c405ec3393580583177fa1728df4a45c9e510 Mon Sep 17 00:00:00 2001 From: rsandifo Date: Thu, 30 Oct 2003 18:07:38 +0000 Subject: [PATCH] * config/mips/mips.c (mips_global_pointer): Don't try to use $25. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73094 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/config/mips/mips.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6b6a161..99f3442 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-10-30 Richard Sandiford + + * config/mips/mips.c (mips_global_pointer): Don't try to use $25. + 2003-10-30 Richard Henderson * config/mips/mips.c (mips_build_builtin_va_list): Use runtime diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 73873bf..46b27f2 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -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; -- 2.7.4