(original) (raw)

changeset: 94592:527ed5205806 parent: 94590:8f978b2891dc parent: 94591:e37b201297d2 user: Antoine Pitrou solipsis@pitrou.net 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🔞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🔞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 STRICTPROTO"+if"STRICT_PROTO" + if "STRICTPROTO"+if"CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then + OPT="-g -Og -Wall STRICTPROTO"+else+OPT="−g−O0−WallSTRICT_PROTO" + else + OPT="-g -O0 -Wall STRICTPROTO"+else+OPT="−g−O0−WallSTRICT_PROTO" + fi else OPT="-g WRAP−O3−WallWRAP -O3 -Wall WRAP−O3−WallSTRICT_PROTO" fi diff -r 8f978b2891dc -r 527ed5205806 configure.ac --- a/configure.ac Wed Feb 11 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 STRICTPROTO"+if"STRICT_PROTO" + if "STRICTPROTO"+if"CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then + OPT="-g -Og -Wall STRICTPROTO"+else+OPT="−g−O0−WallSTRICT_PROTO" + else + OPT="-g -O0 -Wall STRICTPROTO"+else+OPT="−g−O0−WallSTRICT_PROTO" + fi else OPT="-g WRAP−O3−WallWRAP -O3 -Wall WRAP−O3−WallSTRICT_PROTO" fi /solipsis@pitrou.net