See :
Subject: Benchmarking (was Re: GCC bug breaking Perl_sv_catpvfn()?)
From: "Marcus Holland-Moritz" <mhx-perl@gmx.net>
Message-ID: <
071601c3d020$4046d2a0$d500a8c0@R2D2>
p4raw-id: //depot/perl@22043
esac
case "$optimize" in
-'') # If we have modern enough gcc and well-supported enough CPU,
- # crank up the optimization level.
- case "`${cc:-gcc} -v 2>&1`" in
- *"gcc version 2.95"*|*"gcc version 3."*)
- case "`arch 2>&1`" in
- i?86|ppc) optimize='-O3' ;;
- esac
- ;;
- esac
- case "$optimize" in
- '') optimize='-O2' ;;
- esac
- ;;
+# use -O2 by default ; -O3 doesn't seem to bring significant benefits with gcc
+'') optimize='-O2' ;;
esac
# Are we using ELF? Thanks to Kenneth Albanowski <kjahds@kjahds.com>