]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport 43470:
authorNeal Norwitz <nnorwitz@gmail.com>
Sat, 1 Apr 2006 08:50:35 +0000 (08:50 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sat, 1 Apr 2006 08:50:35 +0000 (08:50 +0000)
Get gcc to do strict IEEE math.  This flag was already used for cc, just not
gcc.  Without this flag, doing pretty much anything with NaNs causes
a Floating Point Exception signal.  This causes the interpreter to quit.
The failing tests this fixes are:  test_long.
This is somewhat equivalent to doing signal(SIGFPE, SIG_IGN).

Misc/NEWS
configure
configure.in

index 9de19d983409f037736df35e47dbca296168bdfe..add8f7ba5c0f1de31d613f7fb5ccac3acb90dc4f 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -9,6 +9,12 @@ What's New in Python 2.4.4c1?
 
 *Release date: DD-MMM-2006*
 
+Core and builtins
+-----------------
+
+Extension Modules
+-----------------
+
 Library
 -------
 
@@ -17,6 +23,14 @@ Library
   raise an exception some day.  But dicts have been allowed, and "mostly
   worked", so support for them won't go away without warning.
 
+Tools/Demos
+-----------
+
+Build
+-----
+
+- Fix test_long failure on Tru64 with gcc by using -mieee gcc option.
+
 
 What's New in Python 2.4.3?
 ===========================
index a00c15424c8a59aedf2845390efff6e94b9a8148..53c6feda615c24c4e294d2ef0edf2b04cb960801 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 41985 .
+# From configure.in Revision: 43158 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.59 for python 2.4.
 #
@@ -3839,6 +3839,9 @@ echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
        Darwin*)
            BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
            ;;
+       OSF*)
+           BASECFLAGS="$BASECFLAGS -mieee"
+           ;;
     esac
     ;;
 
index bcb07e6fcf59f58ac5d40188eaa754b43d6078a2..459e1061b2bf4fb8e2771d2909fc1af4c31f91ea 100644 (file)
@@ -737,6 +737,9 @@ yes)
        Darwin*)
            BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
            ;;
+       OSF*)
+           BASECFLAGS="$BASECFLAGS -mieee"
+           ;;
     esac
     ;;