Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b2153e9

Browse files
committed
Merged revisions 80832 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r80832 | mark.dickinson | 2010-05-05 23:23:58 +0100 (Wed, 05 May 2010) | 2 lines Issue #8625: Turn off gcc optimization in debug builds. ........
1 parent ae4d5c6 commit b2153e9

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

Misc/NEWS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,6 +1145,12 @@ Extension Modules
11451145
Build
11461146
-----
11471147

1148+
- Issue #8625: Turn off optimization in --with-pydebug builds with
1149+
gcc. (Optimization was unintentionally turned on in gcc
1150+
--with-pydebug builds as a result of the issue #1628484 fix,
1151+
combined with autoconf's strange choice of default CFLAGS produced
1152+
by AC_PROG_CC for gcc.)
1153+
11481154
- Issue #3646: It is now easily possible to install a Python framework into
11491155
your home directory on MacOSX, see Mac/README for more information.
11501156

configure

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/sh
2-
# From configure.in Revision: 80666 .
2+
# From configure.in Revision: 80728 .
33
# Guess values for system-dependent variables and create Makefiles.
44
# Generated by GNU Autoconf 2.65 for python 3.2.
55
#
@@ -5288,7 +5288,7 @@ then
52885288
if test "$Py_DEBUG" = 'true' ; then
52895289
# Optimization messes up debuggers, so turn it off for
52905290
# debug builds.
5291-
OPT="-g -Wall $STRICT_PROTO"
5291+
OPT="-g -O0 -Wall $STRICT_PROTO"
52925292
else
52935293
OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
52945294
fi
@@ -13553,13 +13553,14 @@ fi
1355313553
1355413554
1355513555
13556-
1355713556
case $ac_sys_system in
1355813557
OSF*) as_fn_error "OSF* systems are deprecated unless somebody volunteers. Check http://bugs.python.org/issue8606" "$LINENO" 5 ;;
1355913558
esac
1356013559
1356113560
1356213561
13562+
13563+
1356313564
for h in `(cd $srcdir;echo Python/thread_*.h)`
1356413565
do
1356513566
THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"

configure.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ then
875875
if test "$Py_DEBUG" = 'true' ; then
876876
# Optimization messes up debuggers, so turn it off for
877877
# debug builds.
878-
OPT="-g -Wall $STRICT_PROTO"
878+
OPT="-g -O0 -Wall $STRICT_PROTO"
879879
else
880880
OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
881881
fi

0 commit comments

Comments
 (0)