]> code.ossystems Code Review - openembedded-core.git/commit
mpfr: Fix compilation for ARC
authorAlexey Brodkin <alexey.brodkin@synopsys.com>
Thu, 18 Oct 2018 09:12:03 +0000 (12:12 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Oct 2018 15:47:59 +0000 (16:47 +0100)
commit887a062ca139014ae6dfd1919e0ff9a5ef4db35e
tree9f223b2ebb9470a08ba88683d0ffc32598370d86
parent37e9465b342f6075ce13479dfed59cd2a7cc46ae
mpfr: Fix compilation for ARC

MPFR has a couple of things implemented in assembly and in case of
ARC those parts were written long ago when ARC GCC port was not yet
upstreamed. On upstreaming of GCC some constraints were changed and
so we can no longer build MPFR for ARC with up-to-date tools seeing
something like that:
| In file included from ../../mpfr-4.0.1/src/mpfr-impl.h:112,
|                  from ../../mpfr-4.0.1/src/mul.c:24:
| ../../mpfr-4.0.1/src/mul.c: In function 'mpfr_mul':
| ../../mpfr-4.0.1/src/mpfr-longlong.h:415:3: error: impossible constraint in 'asm'
|    __asm__ ("add.f\t%1, %4, %5\n\tadc\t%0, %2, %3"   \
|    ^~~~~~~

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/mpfr/mpfr/0001-Fix-obsolete-ARC-asm-constraints.patch [new file with mode: 0644]
meta/recipes-support/mpfr/mpfr_4.0.1.bb