mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Issue #8625: Turn off gcc optimization in debug builds.
This commit is contained in:
parent
38f81223ae
commit
d2f3e3fc1d
3 changed files with 8 additions and 3 deletions
|
@ -191,6 +191,11 @@ Tests
|
||||||
Build
|
Build
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
- Issue #8625: Turn off optimization in --with-pydebug builds with gcc.
|
||||||
|
(Optimization was unintentionally turned on in gcc --with-pydebug builds in
|
||||||
|
2.7 beta1 as a result of the issue #1628484 fix, combined with autoconf's
|
||||||
|
strange choice of default CFLAGS produced by AC_PROG_CC for gcc.)
|
||||||
|
|
||||||
- Issue #8509: Fix quoting in help strings and code snippets in configure.in.
|
- Issue #8509: Fix quoting in help strings and code snippets in configure.in.
|
||||||
|
|
||||||
- Issue #3646: It is now easily possible to install a Python framework into
|
- Issue #3646: It is now easily possible to install a Python framework into
|
||||||
|
|
4
configure
vendored
4
configure
vendored
|
@ -1,5 +1,5 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# From configure.in Revision: 80647 .
|
# From configure.in Revision: 80665 .
|
||||||
# Guess values for system-dependent variables and create Makefiles.
|
# Guess values for system-dependent variables and create Makefiles.
|
||||||
# Generated by GNU Autoconf 2.61 for python 2.7.
|
# Generated by GNU Autoconf 2.61 for python 2.7.
|
||||||
#
|
#
|
||||||
|
@ -4659,7 +4659,7 @@ then
|
||||||
if test "$Py_DEBUG" = 'true' ; then
|
if test "$Py_DEBUG" = 'true' ; then
|
||||||
# Optimization messes up debuggers, so turn it off for
|
# Optimization messes up debuggers, so turn it off for
|
||||||
# debug builds.
|
# debug builds.
|
||||||
OPT="-g -Wall $STRICT_PROTO"
|
OPT="-g -O0 -Wall $STRICT_PROTO"
|
||||||
else
|
else
|
||||||
OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
|
OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -942,7 +942,7 @@ then
|
||||||
if test "$Py_DEBUG" = 'true' ; then
|
if test "$Py_DEBUG" = 'true' ; then
|
||||||
# Optimization messes up debuggers, so turn it off for
|
# Optimization messes up debuggers, so turn it off for
|
||||||
# debug builds.
|
# debug builds.
|
||||||
OPT="-g -Wall $STRICT_PROTO"
|
OPT="-g -O0 -Wall $STRICT_PROTO"
|
||||||
else
|
else
|
||||||
OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
|
OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue