This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Clobbering of callee saved altivec register


> 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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]