source: npl/system/klibc/patches/klibc-mips-setjmp-s-don-t-save-and-restore-floating-point.patch @ aafe99e

perl-5.22
Last change on this file since aafe99e was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[c5c522c]1From: YunQiang Su <wzssyqa@gmail.com>
2Date: Sat Sep  5 06:39:25 PDT 2015
3Subject: [klibc] mips/setjmp.S: don't save and restore floating-point registers
4Bug-Debian: https://bugs.debian.org/789683
5Forwarded: http://www.zytor.com/pipermail/klibc/2015-September/003833.html
6
7Klibc FTBFS with '-mno-odd-spreg' on mips32(el) platforms,
8As it try to save/restore odd-number FPR.
9
10Indeed no other architectures save/restore FPR at all.
11It shouldn't be needed.
12---
13 usr/klibc/arch/mips/setjmp.S | 24 ------------------------
14 1 file changed, 24 deletions(-)
15
16--- a/usr/klibc/arch/mips/setjmp.S
17+++ b/usr/klibc/arch/mips/setjmp.S
18@@ -29,18 +29,6 @@ LEAF(setjmp)
19        sw      s8, 40(a0)
20        sw      ra, 44(a0)
21        cfc1    t0,$31
22-       swc1    $f20,48(a0)
23-       swc1    $f21,52(a0)
24-       swc1    $f22,56(a0)
25-       swc1    $f23,60(a0)
26-       swc1    $f24,64(a0)
27-       swc1    $f25,68(a0)
28-       swc1    $f26,72(a0)
29-       swc1    $f27,76(a0)
30-       swc1    $f28,80(a0)
31-       swc1    $f29,84(a0)
32-       swc1    $f30,88(a0)
33-       swc1    $f31,92(a0)
34        sw      t0,96(a0)
35        move    v0,zero
36        jr      ra
37@@ -61,18 +49,6 @@ LEAF(longjmp)
38        lw      s8, 40(a0)
39        lw      ra, 44(a0)
40        lw      t0, 96(a0)
41-       lwc1    $f20,48(a0)
42-       lwc1    $f21,52(a0)
43-       lwc1    $f22,56(a0)
44-       lwc1    $f23,60(a0)
45-       lwc1    $f24,64(a0)
46-       lwc1    $f25,68(a0)
47-       lwc1    $f26,72(a0)
48-       lwc1    $f27,76(a0)
49-       lwc1    $f28,80(a0)
50-       lwc1    $f29,84(a0)
51-       lwc1    $f30,88(a0)
52-       lwc1    $f31,92(a0)
53        ctc1    t0,$31
54        move    v0,a1
55        jr      ra
Note: See TracBrowser for help on using the repository browser.