Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b0e2b4c

Browse files
committed
Merged revisions 62499 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r62499 | mark.dickinson | 2008-04-25 12:11:04 -0400 (Fri, 25 Apr 2008) | 7 lines Issue #1496032. Add -mieee to BASECFLAGS on alpha, when gcc is the compiler. This should(?) help to fix failures in test_math and test_cmath on Linux/alpha. Also add configure message reporting the result of uname -m, as a debugging aid. ........
1 parent a1e5325 commit b0e2b4c

3 files changed

Lines changed: 33 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ Library
4747
Build
4848
-----
4949

50+
- Issue #1496032: On alpha, use -mieee when gcc is the compiler.
51+
5052
- "make install" is now an alias for "make altinstall", to prevent
5153
accidentally overwriting a Python 2.x installation.
5254
Use "make fullinstall" to force Python 3.0 to be installed as

configure

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/sh
2-
# From configure.in Revision: 62146 .
2+
# From configure.in Revision: 62451 .
33
# Guess values for system-dependent variables and create Makefiles.
44
# Generated by GNU Autoconf 2.61 for python 3.0.
55
#
@@ -2153,6 +2153,12 @@ echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
21532153
CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
21542154
EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
21552155

2156+
{ echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2157+
echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2158+
ac_sys_machine=`uname -m`
2159+
{ echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2160+
echo "${ECHO_T}$ac_sys_machine" >&6; }
2161+
21562162
# checks for alternative programs
21572163

21582164
# compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
@@ -4503,6 +4509,16 @@ echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
45034509
then
45044510
BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
45054511
fi
4512+
4513+
# if using gcc on alpha, use -mieee to get (near) full IEEE 754
4514+
# support. Without this, treatment of subnormals doesn't follow
4515+
# the standard.
4516+
case $ac_sys_machine in
4517+
alpha*)
4518+
BASECFLAGS="$BASECFLAGS -mieee"
4519+
;;
4520+
esac
4521+
45064522
case $ac_sys_system in
45074523
SCO_SV*)
45084524
BASECFLAGS="$BASECFLAGS -m486 -DSCO5"

configure.in

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,10 @@ AC_SUBST(EXPORT_MACOSX_DEPLOYMENT_TARGET)
333333
CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
334334
EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
335335

336+
AC_MSG_CHECKING(machine type as reported by uname -m)
337+
ac_sys_machine=`uname -m`
338+
AC_MSG_RESULT($ac_sys_machine)
339+
336340
# checks for alternative programs
337341

338342
# compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
@@ -792,6 +796,16 @@ yes)
792796
then
793797
BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
794798
fi
799+
800+
# if using gcc on alpha, use -mieee to get (near) full IEEE 754
801+
# support. Without this, treatment of subnormals doesn't follow
802+
# the standard.
803+
case $ac_sys_machine in
804+
alpha*)
805+
BASECFLAGS="$BASECFLAGS -mieee"
806+
;;
807+
esac
808+
795809
case $ac_sys_system in
796810
SCO_SV*)
797811
BASECFLAGS="$BASECFLAGS -m486 -DSCO5"

0 commit comments

Comments
 (0)