SHA256
1
0
forked from pool/libgcrypt
libgcrypt/libgcrypt-sparcv9.diff
OBS User autobuild 16693e1e44 Accepting request 43461 from home:hennevogel:TODO
Copy from home:hennevogel:TODO/libgcrypt based on submit request 43461 from user a_jaeger

OBS-URL: https://build.opensuse.org/request/show/43461
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libgcrypt?expand=0&rev=18
2010-07-20 18:17:16 +00:00

24 lines
898 B
Diff

Avoid link-time error
../src/.libs/libgcrypt.so: undefined reference to `__udiv_qrnnd'
by choosing v8-like insns for 32-bit v9 mode too.
---
mpi/longlong.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: libgcrypt-1.4.4/mpi/longlong.h
===================================================================
--- libgcrypt-1.4.4.orig/mpi/longlong.h
+++ libgcrypt-1.4.4/mpi/longlong.h
@@ -1133,7 +1133,7 @@ extern USItype __udiv_qrnnd ();
"rJ" ((USItype)(al)), \
"rI" ((USItype)(bl)) \
__CLOBBER_CC)
-#if defined (__sparc_v8__)
+#if defined (__sparc_v8__) || defined(__sparc_v9__)
/* Don't match immediate range because, 1) it is not often useful,
2) the 'I' flag thinks of the range as a 13 bit signed interval,
while we want to match a 13 bit interval, sign extended to 32 bits,