提交 9540ccdf 编写于 作者: D Dr. Stephen Henson

Stop warnings about deprecated -mcpu option.

上级 98bf13c3
...@@ -535,9 +535,9 @@ case "$GUESSOS" in ...@@ -535,9 +535,9 @@ case "$GUESSOS" in
esac esac
if [ "$CC" = "gcc" ]; then if [ "$CC" = "gcc" ]; then
case ${ISA:-generic} in case ${ISA:-generic} in
EV5|EV45) options="$options -mcpu=ev5";; EV5|EV45) options="$options -march=ev5";;
EV56|PCA56) options="$options -mcpu=ev56";; EV56|PCA56) options="$options -march=ev56";;
*) options="$options -mcpu=ev6";; *) options="$options -march=ev6";;
esac esac
fi fi
;; ;;
...@@ -598,13 +598,13 @@ case "$GUESSOS" in ...@@ -598,13 +598,13 @@ case "$GUESSOS" in
*86-*-linux2) OUT="linux-elf" *86-*-linux2) OUT="linux-elf"
if [ "$GCCVER" -gt 28 ]; then if [ "$GCCVER" -gt 28 ]; then
if grep '^model.*Pentium' /proc/cpuinfo >/dev/null ; then if grep '^model.*Pentium' /proc/cpuinfo >/dev/null ; then
options="$options -mcpu=pentium" options="$options -march=pentium"
fi fi
if grep '^model.*Pentium Pro' /proc/cpuinfo >/dev/null ; then if grep '^model.*Pentium Pro' /proc/cpuinfo >/dev/null ; then
options="$options -mcpu=pentiumpro" options="$options -march=pentiumpro"
fi fi
if grep '^model.*K6' /proc/cpuinfo >/dev/null ; then if grep '^model.*K6' /proc/cpuinfo >/dev/null ; then
options="$options -mcpu=k6" options="$options -march=k6"
fi fi
fi ;; fi ;;
*-*-linux1) OUT="linux-aout" ;; *-*-linux1) OUT="linux-aout" ;;
...@@ -783,7 +783,7 @@ esac ...@@ -783,7 +783,7 @@ esac
# options="$options -DATALLA" # options="$options -DATALLA"
#fi #fi
# gcc < 2.8 does not support -mcpu=ultrasparc # gcc < 2.8 does not support -march=ultrasparc
if [ "$OUT" = solaris-sparcv9-gcc -a $GCCVER -lt 28 ] if [ "$OUT" = solaris-sparcv9-gcc -a $GCCVER -lt 28 ]
then then
echo "WARNING! Falling down to 'solaris-sparcv8-gcc'." echo "WARNING! Falling down to 'solaris-sparcv8-gcc'."
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册