Skip to content

Commit dedeeaa

Browse files
committed
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_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).
1 parent 7b8cf38 commit dedeeaa

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

configure

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/sh
2-
# From configure.in Revision: 42563 .
2+
# From configure.in Revision: 43158 .
33
# Guess values for system-dependent variables and create Makefiles.
44
# Generated by GNU Autoconf 2.59 for python 2.5.
55
#
@@ -3882,6 +3882,9 @@ echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
38823882
Darwin*)
38833883
BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
38843884
;;
3885+
OSF*)
3886+
BASECFLAGS="$BASECFLAGS -mieee"
3887+
;;
38853888
esac
38863889
;;
38873890

configure.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,9 @@ yes)
746746
Darwin*)
747747
BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
748748
;;
749+
OSF*)
750+
BASECFLAGS="$BASECFLAGS -mieee"
751+
;;
749752
esac
750753
;;
751754

0 commit comments

Comments
 (0)