forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
mpfr-longlong.h: Fix obsolete ARC asm constraints
 
This patch replaces obsolete ARC "J" asm constraint with
up-to-date "Cal" constraint.
The patch should be applied to upstream "mpfr" library and
after that it should be removed from buildroot as soon as 
mpfr version with current fix will come up.
 
Signed-off-by: Vlad Zakharov <vzakhar@synopsys.com>
Signed-off-by: Claudiu Zissulescu <claziss@synopsys.com>
---
Index: /src/mpfr-longlong.h
===================================================================
--- /src/mpfr-longlong.h    (revision 10963)
+++ /src/mpfr-longlong.h    (working copy)
@@ -416,17 +416,17 @@
        : "=r" (sh),                            \
          "=&r" (sl)                            \
        : "r"  ((USItype) (ah)),                    \
-         "rIJ" ((USItype) (bh)),                    \
+         "rICal" ((USItype) (bh)),                    \
          "%r" ((USItype) (al)),                    \
-         "rIJ" ((USItype) (bl)))
+         "rICal" ((USItype) (bl)))
 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \
   __asm__ ("sub.f\t%1, %4, %5\n\tsbc\t%0, %2, %3"            \
        : "=r" (sh),                            \
          "=&r" (sl)                            \
        : "r" ((USItype) (ah)),                    \
-         "rIJ" ((USItype) (bh)),                    \
+         "rICal" ((USItype) (bh)),                    \
          "r" ((USItype) (al)),                    \
-         "rIJ" ((USItype) (bl)))
+         "rICal" ((USItype) (bl)))
 #endif
 
 #if defined (__arm__) && (defined (__thumb2__) || !defined (__thumb__)) \