run it and check in the resulting configure file.
Daniel Dittmar
Walter Dörwald
Jaromir Dolecek
+Ismail Donmez
Dima Dorfman
Cesar Douady
Dean Draayer
Build
-----
+- Bug #1608: use -fwrapv when GCC supports it. This is important,
+ newer GCC versions may optimize away overflow buffer overflow checks
+ without this option!
+
- Patch #1418: Make the AC_REPLACE_FUNCS object files actually work.
- Add a FAST_LOOPS build option that speeds-up looping by trading away
if test "$CC" != 'g++' ; then
STRICT_PROTO="-Wstrict-prototypes"
fi
+ # For gcc 4.x we need to use -fwrapv so lets check if its supported
+ if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
+ WRAP="-fwrapv"
+ fi
case $ac_cv_prog_cc_g in
yes)
if test "$Py_DEBUG" = 'true' ; then
# debug builds.
OPT="-g -Wall $STRICT_PROTO"
else
- OPT="-g -O3 -Wall $STRICT_PROTO"
+ OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
fi
;;
*)