diff options
author | Marcus Holland-Moritz <mhx-perl@gmx.net> | 2004-01-01 06:32:15 +0100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2004-01-02 08:35:22 +0000 |
commit | 051e4fe1efae394fc029e116526cd46285a0a0df (patch) | |
tree | 88a37cae0bfdff0f6e6d1022108869259e0c7b23 /hints/linux.sh | |
parent | de5e1a3d77dfa45f2092835574e8357a12357e11 (diff) | |
download | perl-051e4fe1efae394fc029e116526cd46285a0a0df.tar.gz |
Use the optimization level -O2 by default on Linux/gcc.
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
Diffstat (limited to 'hints/linux.sh')
-rw-r--r-- | hints/linux.sh | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/hints/linux.sh b/hints/linux.sh index 437e5c94c3..043590bbcb 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -80,19 +80,8 @@ case "`${cc:-cc} -V 2>&1`" in 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> |