Skip to content

Commit

Permalink
Don't use deprecated -mcpu option.
Browse files Browse the repository at this point in the history
  • Loading branch information
snhenson committed Feb 22, 2007
1 parent ac31921 commit 74ff8dc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions config
Original file line number Diff line number Diff line change
Expand Up @@ -527,9 +527,9 @@ case "$GUESSOS" in
esac
if [ "$CC" = "gcc" ]; then
case ${ISA:-generic} in
EV5|EV45) options="$options -mcpu=ev5";;
EV56|PCA56) options="$options -mcpu=ev56";;
*) options="$options -mcpu=ev6";;
EV5|EV45) options="$options -march=ev5";;
EV56|PCA56) options="$options -march=ev56";;
*) options="$options -march=ev6";;
esac
fi
;;
Expand Down Expand Up @@ -593,13 +593,13 @@ case "$GUESSOS" in
*86-*-linux2) OUT="linux-elf"
if [ "$GCCVER" -gt 28 ]; then
if grep '^model.*Pentium' /proc/cpuinfo >/dev/null ; then
options="$options -mcpu=pentium"
options="$options -march=pentium"
fi
if grep '^model.*Pentium Pro' /proc/cpuinfo >/dev/null ; then
options="$options -mcpu=pentiumpro"
options="$options -march=pentiumpro"
fi
if grep '^model.*K6' /proc/cpuinfo >/dev/null ; then
options="$options -mcpu=k6"
options="$options -march=k6"
fi
fi ;;
*-*-linux1) OUT="linux-aout" ;;
Expand Down Expand Up @@ -777,7 +777,7 @@ esac
# options="$options -DATALLA"
#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 ]
then
echo "WARNING! Falling down to 'solaris-sparcv8-gcc'."
Expand Down

0 comments on commit 74ff8dc

Please sign in to comment.