[Patch, mips]: Add support for FR=1/o32. Update implemention of setjmp/longjmp
Matheus Almeida
Matheus.Almeida@imgtec.com
Tue Nov 26 11:30:00 GMT 2013
Mips allow the width of FPU registers to be controlled by specifying the FR configuration bit:
FR=0 -> 32-bit FPU registers
FR=1 -> 64-bit FPU registers
This can be controlled by -mfp32/-mfp64 command line options.
This patch updates the definition of setjmp, longjmp and jmp_buf so that on a call to setjmp/longjmp, all the required floating-point callee-saved registers are properly saved/restored.
We are aware that updating the size of jmp_buf can potentially break existing applications but we expect the number of applications built with FR=1 mode to be very small, possibly zero. Nevertheless this should be clearly stated in the release notes that existing applications built with FR=1 (-mfp64) need to be recompiled in order to use new versions of the library.
Regards,
Matheus
Matheus Almeida
MIPS processor IP
www.imgtec.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: newlib_fp64.patch
Type: application/octet-stream
Size: 2147 bytes
Desc: newlib_fp64.patch
URL: <http://sourceware.org/pipermail/newlib/attachments/20131126/372116f3/attachment.obj>
More information about the Newlib
mailing list