- Add gmp-6.2.1-arm64-invert_limb.patch [bsc#1179751]

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gmp?expand=0&rev=86
This commit is contained in:
Richard Biener 2020-12-09 07:25:26 +00:00 committed by Git OBS Bridge
parent 569565d9e7
commit 58165c5ce1
3 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,14 @@
--- mpn/arm64/invert_limb.asm.orig 2020-12-09 08:22:02.101836933 +0100
+++ mpn/arm64/invert_limb.asm 2020-12-09 08:22:55.774456637 +0100
@@ -41,9 +41,9 @@
ASM_START()
PROLOGUE(mpn_invert_limb)
lsr x2, x0, #54
- LEA_HI( x1, approx_tab)
+ adrp x1, approx_tab
and x2, x2, #0x1fe
- LEA_LO( x1, approx_tab)
+ add x1, x1, :lo12:approx_tab
ldrh w3, [x1,x2]
lsr x4, x0, #24
add x4, x4, #1

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Dec 9 07:24:19 UTC 2020 - Richard Biener <rguenther@suse.com>
- Add gmp-6.2.1-arm64-invert_limb.patch [bsc#1179751]
-------------------------------------------------------------------
Thu Dec 3 12:54:56 UTC 2020 - Andreas Stieger <andreas.stieger@gmx.de>

View File

@ -27,6 +27,8 @@ Source0: https://gmplib.org/download/%{name}/%{name}-%{version}.tar.xz
Source1: https://gmplib.org/download/%{name}/%{name}-%{version}.tar.xz.sig
Source2: %{name}.keyring
Source3: baselibs.conf
# revert change causing bsc#1179751
Patch1: gmp-6.2.1-arm64-invert_limb.patch
BuildRequires: gcc-c++
BuildRequires: m4
BuildRequires: pkgconfig
@ -73,6 +75,7 @@ huge numbers (integer and floating point).
%prep
%setup -q
%patch1 -p0
%build
export CFLAGS="%{optflags} -fexceptions"