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

Skip to content

Commit c980ffd

Browse files
committed
Drop OPT:Olimit, as it confuses SunPRO (and other compilers).
1 parent 6ffbee7 commit c980ffd

3 files changed

Lines changed: 3 additions & 129 deletions

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ Tests
107107
Build
108108
-----
109109

110+
- Drop -OPT:Olimit compiler option.
111+
110112
- Issue #10094: Use versioned .so files on GNU/kfreeBSD and the GNU Hurd.
111113

112114
- Accept Oracle Berkeley DB 5.0 and 5.1 as backend for the dbm extension.

configure

Lines changed: 1 addition & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/sh
2-
# From configure.in Revision: 85554 .
2+
# From configure.in Revision: 85559 .
33
# Guess values for system-dependent variables and create Makefiles.
44
# Generated by GNU Autoconf 2.67 for python 3.2.
55
#
@@ -5596,89 +5596,6 @@ then
55965596
BASECFLAGS="$BASECFLAGS $ac_arch_flags"
55975597
fi
55985598
5599-
# disable check for icc since it seems to pass, but generates a warning
5600-
if test "$CC" = icc
5601-
then
5602-
ac_cv_opt_olimit_ok=no
5603-
fi
5604-
5605-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -OPT:Olimit=0" >&5
5606-
$as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; }
5607-
if test "${ac_cv_opt_olimit_ok+set}" = set; then :
5608-
$as_echo_n "(cached) " >&6
5609-
else
5610-
ac_save_cc="$CC"
5611-
CC="$CC -OPT:Olimit=0"
5612-
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613-
/* end confdefs.h. */
5614-
5615-
int
5616-
main ()
5617-
{
5618-
5619-
;
5620-
return 0;
5621-
}
5622-
_ACEOF
5623-
if ac_fn_c_try_compile "$LINENO"; then :
5624-
ac_cv_opt_olimit_ok=yes
5625-
else
5626-
ac_cv_opt_olimit_ok=no
5627-
5628-
fi
5629-
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5630-
CC="$ac_save_cc"
5631-
fi
5632-
5633-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_opt_olimit_ok" >&5
5634-
$as_echo "$ac_cv_opt_olimit_ok" >&6; }
5635-
if test $ac_cv_opt_olimit_ok = yes; then
5636-
case $ac_sys_system in
5637-
# XXX is this branch needed? On MacOSX 10.2.2 the result of the
5638-
# olimit_ok test is "no". Is it "yes" in some other Darwin-esque
5639-
# environment?
5640-
Darwin*)
5641-
;;
5642-
*)
5643-
BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
5644-
;;
5645-
esac
5646-
else
5647-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Olimit 1500" >&5
5648-
$as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; }
5649-
if test "${ac_cv_olimit_ok+set}" = set; then :
5650-
$as_echo_n "(cached) " >&6
5651-
else
5652-
ac_save_cc="$CC"
5653-
CC="$CC -Olimit 1500"
5654-
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655-
/* end confdefs.h. */
5656-
5657-
int
5658-
main ()
5659-
{
5660-
5661-
;
5662-
return 0;
5663-
}
5664-
_ACEOF
5665-
if ac_fn_c_try_compile "$LINENO"; then :
5666-
ac_cv_olimit_ok=yes
5667-
else
5668-
ac_cv_olimit_ok=no
5669-
5670-
fi
5671-
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5672-
CC="$ac_save_cc"
5673-
fi
5674-
5675-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_olimit_ok" >&5
5676-
$as_echo "$ac_cv_olimit_ok" >&6; }
5677-
if test $ac_cv_olimit_ok = yes; then
5678-
BASECFLAGS="$BASECFLAGS -Olimit 1500"
5679-
fi
5680-
fi
5681-
56825599
# Check whether GCC supports PyArg_ParseTuple format
56835600
if test "$GCC" = "yes"
56845601
then

configure.in

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,51 +1092,6 @@ then
10921092
BASECFLAGS="$BASECFLAGS $ac_arch_flags"
10931093
fi
10941094

1095-
# disable check for icc since it seems to pass, but generates a warning
1096-
if test "$CC" = icc
1097-
then
1098-
ac_cv_opt_olimit_ok=no
1099-
fi
1100-
1101-
AC_MSG_CHECKING(whether $CC accepts -OPT:Olimit=0)
1102-
AC_CACHE_VAL(ac_cv_opt_olimit_ok,
1103-
[ac_save_cc="$CC"
1104-
CC="$CC -OPT:Olimit=0"
1105-
AC_COMPILE_IFELSE(
1106-
[AC_LANG_PROGRAM([[]], [[]])],
1107-
[ac_cv_opt_olimit_ok=yes],
1108-
[ac_cv_opt_olimit_ok=no]
1109-
)
1110-
CC="$ac_save_cc"])
1111-
AC_MSG_RESULT($ac_cv_opt_olimit_ok)
1112-
if test $ac_cv_opt_olimit_ok = yes; then
1113-
case $ac_sys_system in
1114-
# XXX is this branch needed? On MacOSX 10.2.2 the result of the
1115-
# olimit_ok test is "no". Is it "yes" in some other Darwin-esque
1116-
# environment?
1117-
Darwin*)
1118-
;;
1119-
*)
1120-
BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
1121-
;;
1122-
esac
1123-
else
1124-
AC_MSG_CHECKING(whether $CC accepts -Olimit 1500)
1125-
AC_CACHE_VAL(ac_cv_olimit_ok,
1126-
[ac_save_cc="$CC"
1127-
CC="$CC -Olimit 1500"
1128-
AC_COMPILE_IFELSE(
1129-
[AC_LANG_PROGRAM([[]], [[]])],
1130-
[ac_cv_olimit_ok=yes],
1131-
[ac_cv_olimit_ok=no]
1132-
)
1133-
CC="$ac_save_cc"])
1134-
AC_MSG_RESULT($ac_cv_olimit_ok)
1135-
if test $ac_cv_olimit_ok = yes; then
1136-
BASECFLAGS="$BASECFLAGS -Olimit 1500"
1137-
fi
1138-
fi
1139-
11401095
# Check whether GCC supports PyArg_ParseTuple format
11411096
if test "$GCC" = "yes"
11421097
then

0 commit comments

Comments
 (0)