From: adrian <> Date: Mon, 11 Jun 2001 00:31:39 +0000 (+0000) Subject: Disallow -On on gcc 2.95.3 as well, as it can generate bad code. X-Git-Tag: SQUID_3_0_PRE1~1497 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=57faa85a3c3d4326f4b383e0a78c7c72b3445bc4;p=thirdparty%2Fsquid.git Disallow -On on gcc 2.95.3 as well, as it can generate bad code. --- diff --git a/configure b/configure index 47b42e0594..5ef6e8d415 100755 --- a/configure +++ b/configure @@ -700,7 +700,7 @@ fi -# From configure.in Revision +# From configure.in Revision: 1.225 ac_aux_dir= for ac_dir in cfgaux $srcdir/cfgaux; do if test -f $ac_dir/install-sh; then @@ -5785,12 +5785,12 @@ EOF ;; esac -# Remove optimization for GCC 2.95.[12] +# Remove optimization for GCC 2.95.[123] # gcc -O[2] on *BSD and Linux (x86) causes pointers to magically become NULL if test "$GCC" = "yes"; then GCCVER=`$CC -v 2>&1 | awk '$2 == "version" {print $3}'` case "$GCCVER" in - 2.95.[12]) + 2.95.[123]) echo "Removing -O for gcc on $host with GCC $GCCVER" CFLAGS="`echo $CFLAGS | sed -e 's/-O[0-9]*//'`" ;; diff --git a/configure.in b/configure.in index 83f7465ccd..6df8059bf8 100644 --- a/configure.in +++ b/configure.in @@ -3,13 +3,13 @@ dnl Configuration input file for Squid dnl dnl Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9) dnl -dnl $Id: configure.in,v 1.225 2001/05/05 17:49:54 hno Exp $ +dnl $Id: configure.in,v 1.226 2001/06/10 18:31:40 adrian Exp $ dnl dnl dnl AC_INIT(src/main.c) AC_CONFIG_HEADER(include/autoconf.h) -AC_REVISION($Revision: 1.225 $)dnl +AC_REVISION($Revision: 1.226 $)dnl AC_PREFIX_DEFAULT(/usr/local/squid) AC_CONFIG_AUX_DIR(cfgaux) @@ -1366,12 +1366,12 @@ dnl during compile. ;; esac -# Remove optimization for GCC 2.95.[12] +# Remove optimization for GCC 2.95.[123] # gcc -O[2] on *BSD and Linux (x86) causes pointers to magically become NULL if test "$GCC" = "yes"; then GCCVER=`$CC -v 2>&1 | awk '$2 == "version" {print $3}'` case "$GCCVER" in - [2.95.[12]]) + [2.95.[123]]) echo "Removing -O for gcc on $host with GCC $GCCVER" CFLAGS="`echo $CFLAGS | sed -e 's/-O[[0-9]]*//'`" ;;