[issue29279] --with-pydebug optimizes too much

2017-01-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: > You can override CFLAGS when default option is not fit for you. I concur with INADA and agree that the existing defaults should be left alone because they've worked well for many years and they provide all tolerably fast result for running the entire

[issue29279] --with-pydebug optimizes too much

2017-01-15 Thread INADA Naoki
INADA Naoki added the comment: I feel this is a problem of balance between speed and debugger usability. I prefer default to -Og because: * It's recommended by gcc for this purpose. * --pydebug option is not only for gdb. I use debug build to run various programs with many assertion. You can

[issue29279] --with-pydebug optimizes too much

2017-01-15 Thread Arcadiy Ivanov
Arcadiy Ivanov added the comment: gcc (GCC) 6.3.1 20161221 (Red Hat 6.3.1-1) Fedora 25 -- ___ Python tracker ___

[issue29279] --with-pydebug optimizes too much

2017-01-15 Thread Arcadiy Ivanov
New submission from Arcadiy Ivanov: Around line 1480 of configure.ac: if test "$Py_DEBUG" = 'true' ; then # Optimization messes up debuggers, so turn it off for # debug builds. if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null;