diff options
| author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-30 18:07:38 +0000 |
|---|---|---|
| committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-30 18:07:38 +0000 |
| commit | bb5c405ec3393580583177fa1728df4a45c9e510 (patch) | |
| tree | d799e1dbfd4c00a52eacb3e6d89b3b87161ffe81 | |
| parent | a3b189d5884dfbe0a897e9328c60e38405dc3c62 (diff) | |
| download | ppe42-gcc-bb5c405ec3393580583177fa1728df4a45c9e510.tar.gz ppe42-gcc-bb5c405ec3393580583177fa1728df4a45c9e510.zip | |
* 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
| -rw-r--r-- | gcc/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/config/mips/mips.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6b6a1618b63..99f3442fe27 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 73873bf15b2..46b27f2c356 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; |

