summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorAndy Dougherty <doughera@lafayette.edu>2004-05-11 09:14:42 -0400
committerNicholas Clark <nick@ccl4.org>2004-05-25 20:54:05 +0000
commit7db0018a701a188694508c40add220dd3534fc1e (patch)
tree8372dd369d87001581db4c549b31e02cf9610930 /Configure
parent9cc7261fe759d50c17003ed81193e318eb204980 (diff)
downloadperl-7db0018a701a188694508c40add220dd3534fc1e.tar.gz
Integrate:
[ 22788] add -pipe to gcc's default flags it has shown a compile time speed increase of about 40% on Linux and HP-UX, and also works on cygwin-1.5.9. On failing OS/gcc combo's remove it in the hints [ 22815] Subject: [PATCH] Configure shouldn't unconditionally add in -pipe Message-ID: <Pine.SOL.4.58.0405111313210.14279@maxwell.phys.lafayette.edu> p4raw-link: @22815 on //depot/perl: 00e89ad4bdb96e09c9ac232f26acc05942ca5f74 p4raw-link: @22788 on //depot/perl: 4a39fcdeb5ff8d29084cd5cfbaed223de8adf4c1 p4raw-id: //depot/maint-5.8/perl@22845 p4raw-integrated: from //depot/perl@22844 'copy in' hints/rhapsody.sh (@20474..) Configure (@22788..) 'merge in' hints/darwin.sh (@22571..)
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure33
1 files changed, 27 insertions, 6 deletions
diff --git a/Configure b/Configure
index 9ce59ff042..5087714182 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 Wed Apr 14 18:21:40 METDST 2004 [metaconfig 3.0 PL70]
+# Generated on Wed May 12 13:00:30 METDST 2004 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by perlbug@perl.org)
cat >c1$$ <<EOF
@@ -4708,6 +4708,7 @@ default|recommended)
2*) if test -d /etc/conf/kconfig.d &&
$contains _POSIX_VERSION $usrinc/sys/unistd.h >/dev/null 2>&1
then
+ # Interactive Systems (ISC) POSIX mode.
dflt="$dflt -posix"
fi
;;
@@ -4721,7 +4722,7 @@ default|recommended)
if $cc -O2 -fno-strict-aliasing -o gcctest gcctest.c; then
echo "Yes, it does." 2>&1
case "$ccflags" in
- *strict-aliasing*)
+ *strict-aliasing*)
echo "Leaving current flags $ccflags alone." 2>&1
;;
*) dflt="$dflt -fno-strict-aliasing" ;;
@@ -4731,6 +4732,26 @@ default|recommended)
fi
;;
esac
+ # For gcc, adding -pipe speeds up compilations for some, but apparently
+ # some assemblers can't read from stdin. (It also slows down compilations
+ # in other cases, but those are apparently rarer these days.) AD 5/2004.
+ case "$gccversion" in
+ ?*) echo " "
+ echo "Checking if your compiler accepts -pipe" 2>&1
+ echo 'int main(void) { return 0; }' > gcctest.c
+ if $cc -O2 -pipe -o gcctest gcctest.c; then
+ echo "Yes, it does." 2>&1
+ case "$ccflags" in
+ *-pipe*)
+ echo "Leaving current flags $ccflags alone." 2>&1
+ ;;
+ *) dflt="$dflt -pipe" ;;
+ esac
+ else
+ echo "Nope, it doesn't, but that's ok." 2>&1
+ fi
+ ;;
+ esac
;;
esac
@@ -4742,8 +4763,8 @@ for thisincl in $inclwanted; do
if $test -d $thisincl; then
if $test x$thisincl != x$usrinc; then
case "$dflt" in
- *" -I$thisincl "*);;
- *) dflt="$dflt -I$thisincl ";;
+ *" -I$thisincl "*);;
+ *) dflt="$dflt -I$thisincl ";;
esac
fi
fi
@@ -4874,7 +4895,7 @@ esac
for thislibdir in $libpth; do
case " $loclibpth " in
*" $thislibdir "*)
- case "$dflt " in
+ case "$dflt " in
*"-L$thislibdir "*) ;;
*) dflt="$dflt -L$thislibdir" ;;
esac
@@ -10079,7 +10100,7 @@ int main()
i32 = ($xxx) g;
/* x86 processors will probably give 0x8000 0000, which is a
- sign change. We don't want that. We want to mimic SPARC
+ sign change. We don't want that. We want to mimic SPARC
behavior here, which is to preserve the sign and give
back 0x7fff ffff.
*/