bug-gmp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] make SPARC, GCC-3.1, ieee_double_extract, and mpfr play together


From: Nix
Subject: [PATCH] make SPARC, GCC-3.1, ieee_double_extract, and mpfr play together
Date: 14 Jul 2002 03:44:56 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Informed Management (RC1))

The preprocessor symbol for SPARC has changed in GCC 3.1, breaking
IEEE float unions and thus mpfr on SPARC.

This fixes that; mpfr passes all its tests with that done (as does GMP
as a whole). Without it, configure warns that the ieee_double_extract is
not defined, and mpfr fails to build.

main ChangeLog:

2002-07-14  Nix  <address@hidden>

        * gmp-impl.h (union ieee_double_extract): Add __sparc__.

mpfr/ ChangeLog:

2002-07-14  Nix  <address@hidden>

        * mpfr-math.h: Add __sparc__.

diff -durN 4.1-orig/gmp-impl.h 4.1/gmp-impl.h
--- 4.1-orig/gmp-impl.h Wed May  8 22:50:17 2002
+++ 4.1/gmp-impl.h      Sun Jul 14 00:36:05 2002
@@ -2526,7 +2526,7 @@
  || defined (__ibm032__)                                               \
  || defined (_IBMR2) || defined (_ARCH_PPC)                            \
  || defined (__sh__)                                                   \
- || defined (__sparc) || defined (sparc)                               \
+ || defined (__sparc) || defined (sparc) || defined (__sparc__)                
\
  || defined (__we32k__)
 #define _GMP_IEEE_FLOATS 1
 union ieee_double_extract
diff -durN 4.1-orig/mpfr/mpfr-math.h 4.1/mpfr/mpfr-math.h
--- 4.1-orig/mpfr/mpfr-math.h   Wed Apr 24 00:36:25 2002
+++ 4.1/mpfr/mpfr-math.h        Sun Jul 14 00:37:18 2002
@@ -58,7 +58,7 @@
  || defined (__ibm032__)                                               \
  || defined (_IBMR2) || defined (_ARCH_PPC)                            \
  || defined (__sh__)                                                   \
- || defined (__sparc) || defined (sparc)                               \
+ || defined (__sparc) || defined (sparc) || defined (__sparc__)                
\
  || defined (__we32k__)
 #define _MPFR_NAN_BYTES  { 0x7f, 0xf8, 0, 0, 0, 0, 0, 0 }
 #define _MPFR_INFP_BYTES { 0x7f, 0x80, 0, 0 }

-- 
`There's something satisfying about killing JWZ over and over again.'
                                        -- 1i, personal communication



reply via email to

[Prev in Thread] Current Thread [Next in Thread]