[libitm] Port to ARM

Joseph S. Myers joseph@codesourcery.com
Fri Nov 25 09:59:00 GMT 2011


On Thu, 24 Nov 2011, Richard Henderson wrote:

> On 11/24/2011 02:34 AM, Richard Earnshaw wrote:
> > What about systems with floating-point or vector registers?  Ie VFP or
> > WMMX on XScale?  Do the callee saved registers in those register banks
> > also have to be saved?
> 
> Yes.
> 
> I mis-read both the glibc and gcc sources on the matter, assuming
> that only the integer registers needed care.  I'll try again...

If you're looking at ARM EABI glibc setjmp/longjmp, note that they have a 
bug that they save/restore fpscr but according to the C standard 
floating-point modes and status should not be saved/restored by 
setjmp/longjmp.  I've no idea whether this particular libitm code is meant 
to save/restore floating-point state or not.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Gcc-patches mailing list