Commit 35341073 by Nathanael Nerode

config.gcc: Clean up and reindent $with_cpu=yes|no clause and the section giving $with_cpu...

	* config.gcc: Clean up and reindent $with_cpu=yes|no clause and
	the section giving $with_cpu defaults by target.

From-SVN: r71738
parent 77cf10c9
2003-09-24 Nathanael Nerode <neroden@gcc.gnu.org> 2003-09-24 Nathanael Nerode <neroden@gcc.gnu.org>
* config.gcc: Clean up and reindent $with_cpu=yes|no clause and
the section giving $with_cpu defaults by target.
* config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf, * config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*, arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*, rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
......
...@@ -2216,99 +2216,94 @@ esac ...@@ -2216,99 +2216,94 @@ esac
# Support for --with-cpu and related options (and a few unrelated options, # Support for --with-cpu and related options (and a few unrelated options,
# too). # too).
case "x$with_cpu" in case ${with_cpu} in
xyes | xno) yes | no)
echo "--with-cpu must be passed a value" 1>&2 echo "--with-cpu must be passed a value" 1>&2
exit 1 exit 1
;; ;;
esac esac
# If there is no $with_cpu option, try to infer one from ${target}. # If there is no $with_cpu option, try to infer one from ${target}.
# This block sets nothing except for with_cpu. # This block sets nothing except for with_cpu.
if test x$with_cpu = x if test x$with_cpu = x ; then
then case ${target} in
case ${target} in ep9312-*-*)
ep9312-*-*) # A Cirrus ARM variant.
# A Cirrus ARM variant. with_cpu="ep9312"
with_cpu="ep9312" ;;
;; i486-*-*)
i486-*-*) with_cpu=i486
with_cpu=i486 ;;
;; i586-*-*)
i586-*-*) case $target_alias in
case $target_alias in k6_2-*)
k6_2-*) with_cpu=k6-2
with_cpu=k6-2 ;;
;; k6_3-*)
k6_3-*) with_cpu=k6-3
with_cpu=k6-3 ;;
;; k6-*)
k6-*) with_cpu=k6
with_cpu=k6 ;;
;; pentium_mmx-*|winchip_c6-*|winchip2-*|c3-*)
pentium_mmx-*|winchip_c6-*|winchip2-*|c3-*) with_cpu=pentium-mmx
with_cpu=pentium-mmx ;;
;; *)
*) with_cpu=pentium
with_cpu=pentium ;;
;; esac
esac ;;
;; i686-*-* | i786-*-*)
i686-*-* | i786-*-*) case $target_alias in
case $target_alias in k8-*)
k8-*) with_cpu=k8
with_cpu=k8 ;;
;; athlon_xp-*|athlon_mp-*|athlon_4-*)
athlon_xp-*|athlon_mp-*|athlon_4-*) with_cpu=athlon-4
with_cpu=athlon-4 ;;
;; athlon_tbird-*|athlon-*)
athlon_tbird-*|athlon-*) with_cpu=athlon
with_cpu=athlon ;;
;; pentium2-*)
pentium2-*) with_cpu=pentium2
with_cpu=pentium2 ;;
;; pentium3-*)
pentium3-*) with_cpu=pentium3
with_cpu=pentium3 ;;
;; pentium4-*)
pentium4-*) with_cpu=pentium4
with_cpu=pentium4 ;;
;; *)
*) with_cpu=pentiumpro
with_cpu=pentiumpro ;;
;; esac
esac ;;
;; x86_64-*-*)
x86_64-*-*) with_cpu=k8
with_cpu=k8 ;;
;; alphaev6[78]*-*-*)
alpha*-*-*) with_cpu=ev67
case ${target} in ;;
alphaev6[78]*) alphaev6*-*-*)
with_cpu=ev67 with_cpu=ev6
;; ;;
alphaev6*) alphapca56*-*-*)
with_cpu=ev6 with_cpu=pca56
;; ;;
alphapca56*) alphaev56*-*-*)
with_cpu=pca56 with_cpu=ev56
;; ;;
alphaev56*) alphaev5*-*-*)
with_cpu=ev56 with_cpu=ev5
;; ;;
alphaev5*) sparc*-*-*)
with_cpu=ev5 with_cpu="`echo ${target} | sed 's/-.*$//'`"
;; if [ x$with_cpu = xsparc64 ]; then
esac with_cpu=v9
;; fi
sparc*-*-*) ;;
with_cpu="`echo ${target} | sed 's/-.*$//'`" esac
if [ x$with_cpu = xsparc64 ]; then fi
with_cpu=v9
fi
;;
esac
fi
# Similarly for --with-schedule. # Similarly for --with-schedule.
if test x$with_schedule = x; then if test x$with_schedule = x; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment