source:
npl/system/klibc/patches/klibc-mips-setjmp-s-don-t-save-and-restore-floating-point.patch
@
439f083
Last change on this file since 439f083 was c5c522c, checked in by , 8 years ago | |
---|---|
|
|
File size: 1.3 KB |
-
usr/klibc/arch/mips/setjmp.S
From: YunQiang Su <wzssyqa@gmail.com> Date: Sat Sep 5 06:39:25 PDT 2015 Subject: [klibc] mips/setjmp.S: don't save and restore floating-point registers Bug-Debian: https://bugs.debian.org/789683 Forwarded: http://www.zytor.com/pipermail/klibc/2015-September/003833.html Klibc FTBFS with '-mno-odd-spreg' on mips32(el) platforms, As it try to save/restore odd-number FPR. Indeed no other architectures save/restore FPR at all. It shouldn't be needed. --- usr/klibc/arch/mips/setjmp.S | 24 ------------------------ 1 file changed, 24 deletions(-)
a b LEAF(setjmp) 29 29 sw s8, 40(a0) 30 30 sw ra, 44(a0) 31 31 cfc1 t0,$31 32 swc1 $f20,48(a0)33 swc1 $f21,52(a0)34 swc1 $f22,56(a0)35 swc1 $f23,60(a0)36 swc1 $f24,64(a0)37 swc1 $f25,68(a0)38 swc1 $f26,72(a0)39 swc1 $f27,76(a0)40 swc1 $f28,80(a0)41 swc1 $f29,84(a0)42 swc1 $f30,88(a0)43 swc1 $f31,92(a0)44 32 sw t0,96(a0) 45 33 move v0,zero 46 34 jr ra … … LEAF(longjmp) 61 49 lw s8, 40(a0) 62 50 lw ra, 44(a0) 63 51 lw t0, 96(a0) 64 lwc1 $f20,48(a0)65 lwc1 $f21,52(a0)66 lwc1 $f22,56(a0)67 lwc1 $f23,60(a0)68 lwc1 $f24,64(a0)69 lwc1 $f25,68(a0)70 lwc1 $f26,72(a0)71 lwc1 $f27,76(a0)72 lwc1 $f28,80(a0)73 lwc1 $f29,84(a0)74 lwc1 $f30,88(a0)75 lwc1 $f31,92(a0)76 52 ctc1 t0,$31 77 53 move v0,a1 78 54 jr ra
Note: See TracBrowser
for help on using the repository browser.