gmp 3.1.1 SPARC udiv_qrnnd patch, Mark Mentovai, 2001 October 16 If __sparcv8 is defined, use the SPARC v8 version of udiv_qrnnd. Without this change, udiv_qrnnd will not be defined using the SPARC v8 udiv instruction, and the default SPARC v7 case of defining it to be the native __gmpn_udiv_qrnnd will be used, but this does not exist on SPARC v8, so at link time, the user will get an error about _gmpn_udiv_qrnnd being undefined. gcc defines __sparcv8. diff -ur gmp-3.1.1.dist/longlong.h gmp-3.1.1/longlong.h Index: gmp-3.1.1/longlong.h --- gmp-3.1.1.dist/longlong.h Mon Jul 24 13:04:09 2000 +++ gmp-3.1.1/longlong.h Tue Oct 16 10:24:17 2001 @@ -905,7 +905,7 @@ (q) = __q; \ } while (0) #else -#if defined (__sparc_v8__) +#if defined (__sparc_v8__) || defined (__sparcv8) /* 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,