Remove CPU detect for IRIX targets. Performance gain is less than 1%, it

doesn't pay off...
This commit is contained in:
Andy Polyakov 2004-12-27 14:55:19 +00:00
parent 2d16a957e0
commit 9e34e806a2

28
config
View File

@ -491,13 +491,13 @@ case "$GUESSOS" in
OUT="irix-$CC" OUT="irix-$CC"
;; ;;
mips3-sgi-irix) mips3-sgi-irix)
CPU=`(hinv -t cpu) 2>/dev/null | head -1 | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'` #CPU=`(hinv -t cpu) 2>/dev/null | head -1 | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'`
CPU=${CPU:-0} #CPU=${CPU:-0}
if [ $CPU -ge 5000 ]; then #if [ $CPU -ge 5000 ]; then
options="$options -mips4" # options="$options -mips4"
else #else
options="$options -mips3" # options="$options -mips3"
fi #fi
OUT="irix-mips3-$CC" OUT="irix-mips3-$CC"
;; ;;
mips4-sgi-irix64) mips4-sgi-irix64)
@ -507,13 +507,13 @@ case "$GUESSOS" in
echo " You have about 5 seconds to press Ctrl-C to abort." echo " You have about 5 seconds to press Ctrl-C to abort."
(stty -icanon min 0 time 50; read waste) < /dev/tty (stty -icanon min 0 time 50; read waste) < /dev/tty
fi fi
CPU=`(hinv -t cpu) 2>/dev/null | head -1 | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'` #CPU=`(hinv -t cpu) 2>/dev/null | head -1 | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'`
CPU=${CPU:-0} #CPU=${CPU:-0}
if [ $CPU -ge 5000 ]; then #if [ $CPU -ge 5000 ]; then
options="$options -mips4" # options="$options -mips4"
else #else
options="$options -mips3" # options="$options -mips3"
fi #fi
OUT="irix-mips3-$CC" OUT="irix-mips3-$CC"
;; ;;
alpha-*-linux2) alpha-*-linux2)