[issue23445] Use -Og for debug builds

2019-10-02 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-38350 to propose to revert this change. -- ___ Python tracker ___ ___

[issue23445] Use -Og for debug builds

2015-03-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset c663dbb84c8c by Victor Stinner in branch '3.4': Issue #23445: Fix test.support.python_is_optimized() for CFLAGS=-Og https://hg.python.org/cpython/rev/c663dbb84c8c New changeset 5b5a22b9327b by Victor Stinner in branch '2.7': Issue #23445: Fix

[issue23445] Use -Og for debug builds

2015-03-27 Thread STINNER Victor
STINNER Victor added the comment: Done. It shouldn't break anything. You're change skipped some test_gdb tests. I fixed the check in test_gdb/test.support. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23445

[issue23445] Use -Og for debug builds

2015-02-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: -uall, without patch: real5m47.290s user18m28.405s sys 0m29.493s -uall, with patch: real3m35.132s user10m26.345s sys 0m30.351s That's a 38% speedup. -- ___ Python tracker

[issue23445] Use -Og for debug builds

2015-02-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Most slow tests are skipped without -uall. As for the patch, may be use AX_CHECK_COMPILE_FLAG [1]? [1] http://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html -- nosy: +serhiy.storchaka ___ Python

[issue23445] Use -Og for debug builds

2015-02-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: As for the patch, may be use AX_CHECK_COMPILE_FLAG [1]? It's not used elsewhere in configure.ac. I reused the idiom used a couple lines above. -- ___ Python tracker rep...@bugs.python.org

[issue23445] Use -Og for debug builds

2015-02-11 Thread Antoine Pitrou
New submission from Antoine Pitrou: Recent gcc versions have an optimization level named -Og. It enables all optimizations that do not break debugging. Here is a patch that uses it on debug builds. Without the patch I get the following time for the whole test suite: $ time ./python -m test

[issue23445] Use -Og for debug builds

2015-02-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset e37b201297d2 by Antoine Pitrou in branch '3.4': Issue #23445: pydebug builds now use gcc -Og where possible, to make the resulting executable faster. https://hg.python.org/cpython/rev/e37b201297d2 New changeset 527ed5205806 by Antoine Pitrou in

[issue23445] Use -Og for debug builds

2015-02-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Done. It shouldn't break anything. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23445

[issue23445] Use -Og for debug builds

2015-02-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks pretty harmless. Some slow buildbots run tests very long time and failed with timeout after 3600 seconds. May be this patch will make them faster. Yet one advantage -- the code compiled with partial optimization will be closer to the code

[issue23445] Use -Og for debug builds

2015-02-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'd like to apply it to 3.4 as well, because it makes development more pleasant. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23445 ___