changeset: 94592:527ed5205806 parent: 94590:8f978b2891dc parent: 94591:e37b201297d2 user: Antoine Pitrou date: Wed Feb 11 19:41:01 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 8f978b2891dc -r 527ed5205806 Misc/NEWS --- a/Misc/NEWS Wed Feb 11 18:18:10 2015 +0100 +++ b/Misc/NEWS Wed Feb 11 19:41:01 2015 +0100 @@ -26,6 +26,12 @@ argument which, if set to True, will pass messages to handlers taking handler levels into account. +Build +----- + +- Issue #23445: pydebug builds now use "gcc -Og" where possible, to make + the resulting executable faster. + What's New in Python 3.5 alpha 1? ================================= diff -r 8f978b2891dc -r 527ed5205806 configure --- a/configure Wed Feb 11 18:18:10 2015 +0100 +++ b/configure Wed Feb 11 19:41:01 2015 +0100 @@ -6338,7 +6338,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 8f978b2891dc -r 527ed5205806 configure.ac --- a/configure.ac Wed Feb 11 18:18:10 2015 +0100 +++ b/configure.ac Wed Feb 11 19:41:01 2015 +0100 @@ -1128,7 +1128,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