Accepting request 855709 from devel:libraries:c_c++

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

OBS-URL: https://build.opensuse.org/request/show/855709
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gmp?expand=0&rev=57
This commit is contained in:
Dominique Leuenberger 2020-12-21 09:21:53 +00:00 committed by Git OBS Bridge
commit 867cf8a767
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> 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 Source1: https://gmplib.org/download/%{name}/%{name}-%{version}.tar.xz.sig
Source2: %{name}.keyring Source2: %{name}.keyring
Source3: baselibs.conf Source3: baselibs.conf
# revert change causing bsc#1179751
Patch1: gmp-6.2.1-arm64-invert_limb.patch
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: m4 BuildRequires: m4
BuildRequires: pkgconfig BuildRequires: pkgconfig
@ -73,6 +75,7 @@ huge numbers (integer and floating point).
%prep %prep
%setup -q %setup -q
%patch1 -p0
%build %build
export CFLAGS="%{optflags} -fexceptions" export CFLAGS="%{optflags} -fexceptions"