This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Use the optimization level -O2 by default on Linux/gcc.
authorMarcus Holland-Moritz <mhx-perl@gmx.net>
Thu, 1 Jan 2004 05:32:15 +0000 (06:32 +0100)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Fri, 2 Jan 2004 08:35:22 +0000 (08:35 +0000)
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

hints/linux.sh

index 437e5c9..043590b 100644 (file)
@@ -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>