]> granicus.if.org Git - python/commitdiff
Get gcc to do strict IEEE math. This flag was already used for cc, just not
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 31 Mar 2006 06:54:45 +0000 (06:54 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 31 Mar 2006 06:54:45 +0000 (06:54 +0000)
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_float, test_long, and test_struct.
This is somewhat equivalent to doing signal(SIGFPE, SIG_IGN).

Will verify if this is a problem in 2.4 and backport if necessary (probably).

configure
configure.in

index 36af89eb02274becfc5cae0c8712f2c2981400ad..c5b795f4914f8e2d9abf264601c76ddd19010744 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 42563 .
+# From configure.in Revision: 43158 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.59 for python 2.5.
 #
@@ -3882,6 +3882,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 5d9ec5633c874f6479ca03ae405cc6b6f26ad0b6..8a73c4fdd331c77426c41157a883f0bbdec3d28a 100644 (file)
@@ -746,6 +746,9 @@ yes)
        Darwin*)
            BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
            ;;
+       OSF*)
+           BASECFLAGS="$BASECFLAGS -mieee"
+           ;;
     esac
     ;;