This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [committed] Fix handling of global registers in MIPS prologues
- From: Richard Sandiford <rdsandiford at googlemail dot com>
- To: Mikael Pettersson <mikpe at it dot uu dot se>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 29 May 2011 19:11:50 +0100
- Subject: Re: [committed] Fix handling of global registers in MIPS prologues
- References: <877hashjjb.fsf@firetop.home> <19883.19216.378904.322184@pilspetsen.it.uu.se>
Mikael Pettersson <mikpe@it.uu.se> writes:
> Richard Sandiford writes:
> > PR 45074 showed up a rather embarrassing oversight in the MIPS backend:
> > global registers were still being treated as call-saved.
> >
> > Fixed with the attached patch. Tested on mips64-linux-gnu and applied.
> >
> > Richard
> >
> >
> > gcc/
> > * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
> > registers.
>
> This bug is also PR target/43700, a regression since gcc-4.4.
> Do you want to backport the fix, or perhaps just mark PR43700
> as fixed in 4.7.0?
I've now backported it to 4.4, 4.5 and 4.6. Sorry for the delay.
Richard