From: H.Merijn Brand Date: Tue, 10 Jan 2006 15:16:03 +0000 (+0000) Subject: 1. Make HP C-ANSI-C work on Itanium2 (HP-UX 11.23) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=798b24a857f60d00d6854643c75b8e2ad37b25ce;p=p5sagit%2Fp5-mst-13.2.git 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 --- diff --git a/hints/hpux.sh b/hints/hpux.sh index 11b3449..bde8904 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'