From: Jarkko Hietaniemi Date: Wed, 22 May 2002 21:47:41 +0000 (+0000) Subject: UNICOS: Mark Lutz had a better idea. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fcb0901bd34305668c7b4d0aeb5b32f5a95fad0e;p=p5sagit%2Fp5-mst-13.2.git UNICOS: Mark Lutz had a better idea. p4raw-id: //depot/perl@16741 --- diff --git a/hints/unicos.sh b/hints/unicos.sh index bff3b22..2af5f28 100644 --- a/hints/unicos.sh +++ b/hints/unicos.sh @@ -14,9 +14,10 @@ ccflags="$ccflags -h matherror=errno" # (It gives int((2/3)*3) a chance to be 2, not 1. --jhi) # (but IEEE CPUs, IEEE/ieee/CPE1 CPUs should not have -h rounddiv, # since the compiler on those CPUs doesn't even support the option.) -case "`/etc/cpu -i|grep cfp`" in -*"cfp") ccflags="$ccflags -h rounddiv" ;; -esac +if /etc/cpu -i | grep -q cfp +then + ccflags="$ccflags -h rounddiv" +fi # Avoid an optimizer bug where a volatile variables # isn't correctly saved and restored --Mark P. Lutz