cpython: 527ed5205806 (original) (raw)
Mercurial > cpython
changeset 94592:527ed5205806
Issue #23445: pydebug builds now use "gcc -Og" where possible, to make the resulting executable faster. [#23445]
Antoine Pitrou solipsis@pitrou.net | |
---|---|
date | Wed, 11 Feb 2015 19:41:01 +0100 |
parents | 8f978b2891dc(current diff)e37b201297d2(diff) |
children | 4828cb77bf2a |
files | Misc/NEWS configure configure.ac |
diffstat | 3 files changed, 16 insertions(+), 2 deletions(-)[+] [-] Misc/NEWS 6 configure 6 configure.ac 6 |
line wrap: on
line diff
--- a/Misc/NEWS +++ b/Misc/NEWS @@ -26,6 +26,12 @@ Library 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? =================================
--- a/configure +++ b/configure @@ -6338,7 +6338,11 @@ then 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[](#l2.8)
OPT="-g -Og -Wall $STRICT_PROTO"[](#l2.9)
else[](#l2.10)
OPT="-g -O0 -Wall $STRICT_PROTO"[](#l2.11)
fi[](#l2.12) else[](#l2.13) OPT="-g <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>W</mi><mi>R</mi><mi>A</mi><mi>P</mi><mo>−</mo><mi>O</mi><mn>3</mn><mo>−</mo><mi>W</mi><mi>a</mi><mi>l</mi><mi>l</mi></mrow><annotation encoding="application/x-tex">WRAP -O3 -Wall </annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7667em;vertical-align:-0.0833em;"></span><span class="mord mathnormal" style="margin-right:0.13889em;">W</span><span class="mord mathnormal" style="margin-right:0.00773em;">R</span><span class="mord mathnormal">A</span><span class="mord mathnormal" style="margin-right:0.13889em;">P</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">−</span><span class="mspace" style="margin-right:0.2222em;"></span></span><span class="base"><span class="strut" style="height:0.7667em;vertical-align:-0.0833em;"></span><span class="mord mathnormal" style="margin-right:0.02778em;">O</span><span class="mord">3</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">−</span><span class="mspace" style="margin-right:0.2222em;"></span></span><span class="base"><span class="strut" style="height:0.6944em;"></span><span class="mord mathnormal">Wa</span><span class="mord mathnormal" style="margin-right:0.01968em;">ll</span></span></span></span>STRICT_PROTO"[](#l2.14) fi[](#l2.15)
--- a/configure.ac +++ b/configure.ac @@ -1128,7 +1128,11 @@ then 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[](#l3.8)
OPT="-g -Og -Wall $STRICT_PROTO"[](#l3.9)
else[](#l3.10)
OPT="-g -O0 -Wall $STRICT_PROTO"[](#l3.11)
fi[](#l3.12) else[](#l3.13) OPT="-g <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>W</mi><mi>R</mi><mi>A</mi><mi>P</mi><mo>−</mo><mi>O</mi><mn>3</mn><mo>−</mo><mi>W</mi><mi>a</mi><mi>l</mi><mi>l</mi></mrow><annotation encoding="application/x-tex">WRAP -O3 -Wall </annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7667em;vertical-align:-0.0833em;"></span><span class="mord mathnormal" style="margin-right:0.13889em;">W</span><span class="mord mathnormal" style="margin-right:0.00773em;">R</span><span class="mord mathnormal">A</span><span class="mord mathnormal" style="margin-right:0.13889em;">P</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">−</span><span class="mspace" style="margin-right:0.2222em;"></span></span><span class="base"><span class="strut" style="height:0.7667em;vertical-align:-0.0833em;"></span><span class="mord mathnormal" style="margin-right:0.02778em;">O</span><span class="mord">3</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">−</span><span class="mspace" style="margin-right:0.2222em;"></span></span><span class="base"><span class="strut" style="height:0.6944em;"></span><span class="mord mathnormal">Wa</span><span class="mord mathnormal" style="margin-right:0.01968em;">ll</span></span></span></span>STRICT_PROTO"[](#l3.14) fi[](#l3.15)