From: Neal Norwitz Date: Sat, 1 Apr 2006 08:50:35 +0000 (+0000) Subject: Backport 43470: X-Git-Tag: v2.4.4c1~298 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0dc17031086087358c496418e47a8177e27f26a;p=thirdparty%2FPython%2Fcpython.git Backport 43470: 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). --- diff --git a/Misc/NEWS b/Misc/NEWS index 9de19d983409..add8f7ba5c0f 100644 --- 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? =========================== diff --git a/configure b/configure index a00c15424c8a..53c6feda615c 100755 --- 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 ;; diff --git a/configure.in b/configure.in index bcb07e6fcf59..459e1061b2bf 100644 --- a/configure.in +++ b/configure.in @@ -737,6 +737,9 @@ yes) Darwin*) BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd" ;; + OSF*) + BASECFLAGS="$BASECFLAGS -mieee" + ;; esac ;;