summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Dougherty <doughera@lafayette.edu>2002-05-24 10:46:49 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2002-05-24 17:47:14 +0000
commit69b290701641763d6658a11526b6e1d15ef2da4e (patch)
treed9ccc19f498e1ee5d696f677a7446f346f1b5bd2
parent993c6a5984241b7e94102ce508f612e2447d0a28 (diff)
downloadperl-69b290701641763d6658a11526b6e1d15ef2da4e.tar.gz
Re: op/pat.t failure at test 822, Solaris 8, gcc -O -Duse64bitint
Message-ID: <Pine.SOL.4.10.10205241445520.6195-100000@maxwell.phys.lafayette.edu> p4raw-id: //depot/perl@16768
-rw-r--r--hints/solaris_2.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh
index 16c4e71aa0..2155e4959e 100644
--- a/hints/solaris_2.sh
+++ b/hints/solaris_2.sh
@@ -474,6 +474,26 @@ EOM
esac
;;
esac
+# gcc-2.8.1 on Solaris 8 with -Duse64bitint fails op/pat.t test 822
+# if we compile regexec.c with -O. Turn off optimization for that one
+# file. See hints/README.hints , especially
+# =head2 Propagating variables to config.sh, method 3.
+# A. Dougherty May 24, 2002
+case "$use64bitint" in
+"$define")
+ case "${gccversion}-${optimize}" in
+ 2.8*-O*)
+ # Honor a command-line override (rather unlikely)
+ case "$regexec_cflags" in
+ '') echo "Disabling optimization on regexec.c for gcc $gccversion" >&4
+ regexec_cflags='optimize='
+ echo "regexec_cflags='optimize=\"\"'" >> config.sh
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+esac
EOCBU
cat > UU/use64bitall.cbu <<'EOCBU'