summaryrefslogtreecommitdiff
path: root/hints/hpux.sh
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-06-19 11:13:00 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-06-19 14:58:12 -0400
commit513433ab5e8823ec87ddbae400df376a166bd0d5 (patch)
tree5e45e99d8c8c214a48213e61ac57e6e197c8963a /hints/hpux.sh
parent95f0c784ba5816f4b2f8e6a4dac8711d55792072 (diff)
downloadperl-513433ab5e8823ec87ddbae400df376a166bd0d5.tar.gz
HP-UX cc in PA-RISC2.0 optimizer crashes with some files.
Diffstat (limited to 'hints/hpux.sh')
-rw-r--r--hints/hpux.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/hints/hpux.sh b/hints/hpux.sh
index e610e17d1d..e9305b6b64 100644
--- a/hints/hpux.sh
+++ b/hints/hpux.sh
@@ -377,6 +377,8 @@ EOM
regexec_cflags=''
doop_cflags=''
op_cflags=''
+opmini_cflags=''
+perlmain_cflags=''
fi
case "$ccisgcc" in
@@ -427,6 +429,21 @@ case "$ccisgcc" in
;;
esac
case "$archname" in
+ PA-RISC2.0)
+ case "$ccversion" in
+ B.11.11.*)
+ # opmini.c and op.c with +O2 makes the compiler die
+ # of internal error, for perlmain.c only +O0 (no opt)
+ # works.
+ case "$optimize" in
+ *O2*) opt=`echo "$optimize" | sed -e 's/O2/O1/'`
+ opmini_cflags="optimize=\"$opt\""
+ op_cflags="optimize=\"$opt\""
+ perlmain_cflags="optimize=\"\""
+ ;;
+ esac
+ esac
+ ;;
IA64*)
case "$ccversion" in
B3910B*A.06.0[12345])