From: Jarkko Hietaniemi Date: Sun, 29 Aug 1999 11:08:50 +0000 (+0000) Subject: Turn off gcc-2.95's strict-alias optimization. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=34d1710f50a396dda66d4f7a7ffb73f6cc80cf01;p=p5sagit%2Fp5-mst-13.2.git Turn off gcc-2.95's strict-alias optimization. This, of course, should be only temporary. From Andy Dougherty. p4raw-id: //depot/cfgperl@4042 --- diff --git a/Configure b/Configure index 24bea65..3402c64 100755 --- a/Configure +++ b/Configure @@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Mon Aug 16 22:35:18 EET DST 1999 [metaconfig 3.0 PL70] +# Generated on Sun Aug 29 14:08:45 EET DST 1999 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.com) cat >/tmp/c1$$ <&1 + echo 'int main(void) { return 0; }' > gcctest.c + if $cc -O2 -fno-strict-aliasing -o gcctest gcctest.c; then + echo "Yes, it does." 2>&1 + case "$ccflags" in + *strict-aliasing*) + echo "Leaving current flags $ccflags alone." 2>&1 + ;; + *) dflt="$dflt -fno-strict-aliasing" ;; + esac + else + echo "Nope, it doesn't, but that's ok." 2>&1 + fi + ;; + esac ;; esac @@ -4233,7 +4251,7 @@ $define) esac case "$hint" in -none|recommended) dflt="$ccflags $dflt" ;; +default|recommended) dflt="$ccflags $dflt" ;; *) dflt="$ccflags";; esac