changeset: 94591:e37b201297d2 branch: 3.4 parent: 94589:368b2021c2e7 user: Antoine Pitrou date: Wed Feb 11 19:39:16 2015 +0100 files: Misc/NEWS configure configure.ac description: Issue #23445: pydebug builds now use "gcc -Og" where possible, to make the resulting executable faster. diff -r 368b2021c2e7 -r e37b201297d2 Misc/NEWS --- a/Misc/NEWS Wed Feb 11 18:17:56 2015 +0100 +++ b/Misc/NEWS Wed Feb 11 19:39:16 2015 +0100 @@ -17,6 +17,12 @@ - Issue #23361: Fix possible overflow in Windows subprocess creation code. +Build +----- + +- Issue #23445: pydebug builds now use "gcc -Og" where possible, to make + the resulting executable faster. + What's New in Python 3.4.3rc1? ============================== diff -r 368b2021c2e7 -r e37b201297d2 configure --- a/configure Wed Feb 11 18:17:56 2015 +0100 +++ b/configure Wed Feb 11 19:39:16 2015 +0100 @@ -6283,7 +6283,11 @@ if test "$Py_DEBUG" = 'true' ; then # Optimization messes up debuggers, so turn it off for # debug builds. - OPT="-g -O0 -Wall $STRICT_PROTO" + if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then + OPT="-g -Og -Wall $STRICT_PROTO" + else + OPT="-g -O0 -Wall $STRICT_PROTO" + fi else OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" fi diff -r 368b2021c2e7 -r e37b201297d2 configure.ac --- a/configure.ac Wed Feb 11 18:17:56 2015 +0100 +++ b/configure.ac Wed Feb 11 19:39:16 2015 +0100 @@ -1119,7 +1119,11 @@ if test "$Py_DEBUG" = 'true' ; then # Optimization messes up debuggers, so turn it off for # debug builds. - OPT="-g -O0 -Wall $STRICT_PROTO" + if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then + OPT="-g -Og -Wall $STRICT_PROTO" + else + OPT="-g -O0 -Wall $STRICT_PROTO" + fi else OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" fi