diff options
author | Evgeniy Didin <didin@synopsys.com> | 2018-08-20 22:00:56 +0300 |
---|---|---|
committer | Evgeniy Didin <didin@synopsys.com> | 2018-08-21 15:51:09 +0300 |
commit | 4a881ea56e59ad2dba590d2362526c15b40897f6 (patch) | |
tree | 45f1dae8659e1d7e8df8dcceb5c8a4e42feee0eb /packages/mpfr | |
parent | d5900debd397b8909d9cafeb9a1093fb7a5dc6e6 (diff) | |
download | crosstool-ng-4a881ea56e59ad2dba590d2362526c15b40897f6.tar.gz crosstool-ng-4a881ea56e59ad2dba590d2362526c15b40897f6.tar.bz2 crosstool-ng-4a881ea56e59ad2dba590d2362526c15b40897f6.zip |
patches: mpfr: Fix obsolete ARC asm constraints
Adding this patch fixes errors while building mpfr for native ARC
toolcahin. Error messages are:
-----------------------------------------------------8<------------------
...
[ERROR] .build/HOST-arc-snps-linux-uclibc/arc-snps-linux-uclibc/src/
mpfr/src/mpfr-longlong.h:423:3: error: impossible constraint in 'asm'
...
[ERROR] >> Build failed in step 'Installing MPFR for host'
-----------------------------------------------------8<------------------
Signed-off-by: Evgeniy Didin <didin@synopsys.com>
Diffstat (limited to 'packages/mpfr')
-rw-r--r-- | packages/mpfr/4.0.1/0001-Fix-obsolete-ARC-asm-constraints.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/packages/mpfr/4.0.1/0001-Fix-obsolete-ARC-asm-constraints.patch b/packages/mpfr/4.0.1/0001-Fix-obsolete-ARC-asm-constraints.patch new file mode 100644 index 00000000..12590cfd --- /dev/null +++ b/packages/mpfr/4.0.1/0001-Fix-obsolete-ARC-asm-constraints.patch @@ -0,0 +1,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__)) \ |