diff options
author | H.Merijn Brand <h.m.brand@xs4all.nl> | 2006-01-10 15:16:03 +0000 |
---|---|---|
committer | H.Merijn Brand <h.m.brand@xs4all.nl> | 2006-01-10 15:16:03 +0000 |
commit | 798b24a857f60d00d6854643c75b8e2ad37b25ce (patch) | |
tree | a5b8bac8a766735e3ebd894a9c7ec0b2f9f8e84f /hints | |
parent | 3ed3657f6b25720167d7640e4a1c6c6eef504596 (diff) | |
download | perl-798b24a857f60d00d6854643c75b8e2ad37b25ce.tar.gz |
1. Make HP C-ANSI-C work on Itanium2 (HP-UX 11.23)
broken optimizer
2. Remove a compiler warning in a try program
p4raw-id: //depot/perl@26770
Diffstat (limited to 'hints')
-rw-r--r-- | hints/hpux.sh | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/hints/hpux.sh b/hints/hpux.sh index 11b34494d7..bde8904136 100644 --- a/hints/hpux.sh +++ b/hints/hpux.sh @@ -342,7 +342,7 @@ int main () { struct rlimit rl; int i = getrlimit (RLIMIT_DATA, &rl); - printf ("%d\n", rl.rlim_cur / (1024 * 1024)); + printf ("%d\n", (int)(rl.rlim_cur / (1024 * 1024))); } /* main */ EOF $cc -o try $ccflags $ldflags try.c @@ -410,15 +410,24 @@ case "$ccisgcc" in *) opt="$optimize" ;; esac - if [ $maxdsiz -le 64 ]; then - toke_cflags="$toke_cflags;optimize=\"$opt\"" - regexec_cflags="optimize=\"$opt\"" - fi case "$archname" in IA64*) - doop_cflags="optimize=\"$opt\"" + case "$ccversion" in + B3910B*A.06.0[12345]) + # > cc --version + # cc: HP aC++/ANSI C B3910B A.06.05 [Jul 25 2005] + # Has optimizing problems with -O2 and up for both + # maint (5.8.8+) and blead (5.9.3+) + # -O1/+O1 passed all tests (m)'05 [ 10 Jan 2005 ] + optimize="$opt" ;; + *) doop_cflags="optimize=\"$opt\"" ;; + esac ;; esac + if [ $maxdsiz -le 64 ]; then + toke_cflags="$toke_cflags;optimize=\"$opt\"" + regexec_cflags="optimize=\"$opt\"" + fi ld=/usr/bin/ld cccdlflags='+Z' lddlflags='-b +vnocompatwarnings' |