This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Clobbering of callee saved altivec register
- From: Geoff Keating <geoffk at desire dot geoffk dot org>
- To: HPENNER at de dot ibm dot com
- Cc: gcc-patches at gcc dot gnu dot org, aldyh at redhat dot com, amodra at bigpond dot net dot au, BOESSEN at de dot ibm dot com, dje at watson dot ibm dot com
- Date: Tue, 13 Jan 2004 11:22:44 -0800
- Subject: Re: [PATCH] Clobbering of callee saved altivec register
- References: <OF5BFE41CC.0819F6BA-ONC1256E01.003352E7-C1256E1A.004DB025@de.ibm.com>
> From: "Hartmut Penner" <HPENNER@de.ibm.com>
> Date: Tue, 13 Jan 2004 15:08:34 +0100
> Hello,
> callee saved vector register got not saved, if
> "TARGET_ALTIVEC_VRSAVE" is false (default on ppc64 linux).
> This happens, because the vrsave_mask is only calculate
> when "TARGET_ALTIVEC_VRSAVE" is true, but is used
> for the decision which register to save / restore...
> Patch below should fix it.
>
> OK to commit, under the assumption gcc bootstraps / regtested ?
> What about gcc 3.3 ?
OK to commit, and for 3.3 too if the same patch applies.
> ChangeLog
>
> 2004-01-13 Hartmut Penner <hpenner@de.ibm.com>
>
> * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
> Calculate always vrsave_mask if TARGET_ALTIVEC.
> (rs6000_emit_prologue): Emit code for vrsave
> only if TARGET_ALTIVEC_VRSAVE.
--
- Geoffrey Keating <geoffk@geoffk.org>