Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | mpfr-longlong.h: Fix obsolete ARC asm constraints |
| 2 | |
| 3 | This patch replaces obsolete ARC "J" asm constraint with |
| 4 | up-to-date "Cal" constraint. |
| 5 | |
| 6 | "J" constraint only existed in pre-upstream GCC port for ARC. |
| 7 | In current upstream port "Cal" constraint is used which leads |
| 8 | to compile-time error. |
| 9 | |
| 10 | Proposed fix is known to work in Buildroot, Crosstool-NG etc. |
| 11 | |
| 12 | [1] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=09cb6a17e71bd40d2fbfaf82a1502fc210e33c87 |
| 13 | |
| 14 | Signed-off-by: Claudiu Zissulescu <claziss@synopsys.com> |
| 15 | Signed-off-by: Vlad Zakharov <vzakhar@synopsys.com> |
| 16 | Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> |
| 17 | |
| 18 | Upstream-Status: Backport [https://gforge.inria.fr/scm/viewvc.php/mpfr?view=revision&revision=13251] |
| 19 | --- |
| 20 | Index: src/mpfr-longlong.h |
| 21 | =================================================================== |
| 22 | --- a/src/mpfr-longlong.h (revision 10963) |
| 23 | +++ b/src/mpfr-longlong.h (working copy) |
| 24 | @@ -416,17 +416,17 @@ |
| 25 | : "=r" (sh), \ |
| 26 | "=&r" (sl) \ |
| 27 | : "r" ((USItype) (ah)), \ |
| 28 | - "rIJ" ((USItype) (bh)), \ |
| 29 | + "rICal" ((USItype) (bh)), \ |
| 30 | "%r" ((USItype) (al)), \ |
| 31 | - "rIJ" ((USItype) (bl))) |
| 32 | + "rICal" ((USItype) (bl))) |
| 33 | #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ |
| 34 | __asm__ ("sub.f\t%1, %4, %5\n\tsbc\t%0, %2, %3" \ |
| 35 | : "=r" (sh), \ |
| 36 | "=&r" (sl) \ |
| 37 | : "r" ((USItype) (ah)), \ |
| 38 | - "rIJ" ((USItype) (bh)), \ |
| 39 | + "rICal" ((USItype) (bh)), \ |
| 40 | "r" ((USItype) (al)), \ |
| 41 | - "rIJ" ((USItype) (bl))) |
| 42 | + "rICal" ((USItype) (bl))) |
| 43 | #endif |
| 44 | |
| 45 | #if defined (__arm__) && (defined (__thumb2__) || !defined (__thumb__)) \ |