aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorPaul Brook <pbrook@gcc.gnu.org>2004-04-29 10:28:05 +0000
committerPaul Brook <pbrook@gcc.gnu.org>2004-04-29 10:28:05 +0000
commit2682e19f4145f725b00ab21b93a35e42d71c04da (patch)
treef5f02a81f32f3c7d083dedd4c7705fe7d896ab3b /gcc/config.gcc
parentc520783756026a222b9b6fc0635100de0a2a2e53 (diff)
downloadgcc-2682e19f4145f725b00ab21b93a35e42d71c04da.zip
gcc-2682e19f4145f725b00ab21b93a35e42d71c04da.tar.gz
gcc-2682e19f4145f725b00ab21b93a35e42d71c04da.tar.bz2
* config.gcc: Pull list of cores from arm-cores.def.
From-SVN: r81285
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc29
1 files changed, 11 insertions, 18 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index bf98002..314018e 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -2212,27 +2212,20 @@ fi
arm*-*-*)
supported_defaults="arch cpu float tune fpu abi"
for which in cpu tune; do
+ # See if it matches any of the entries in arm-cores.def
eval "val=\$with_$which"
- case "$val" in
- "" \
- | arm[236789] | arm250 | arm[67][01]0 \
- | arm60 | arm620 | arm7d | arm7di \
- | arm7m | arm7dm | arm7dmi | arm[79]tdmi \
- | arm70 | arm700i | arm710t | arm720 \
- | arm720t | arm740t | arm710c | arm920 \
- | arm920t | arm926ejs | arm940t | arm9e | arm10tdmi \
- | arm7100 | arm7500 | arm7500fe | arm810 \
- | arm1026ejs | arm1020t | arm1136js | arm1136jfs \
- | xscale | iwmmxt \
- | ep9312 \
- | strongarm | strongarm110 | strongarm11[01]0)
- # OK
- ;;
- *)
+ [ x"$val" = x ] && val=unset
+ for opt in `sed -e '/ARM_CORE/!d' \
+ -e 's/ARM_CORE(\([^,]*\),.*$/\1/' \
+ ${srcdir}/config/arm/arm-cores.def` unset .
+ do
+ [ x$opt = x"$val" ] && break
+ done
+ if [ $opt = . ]; then
echo "Unknown CPU used in --with-$which=$val" 1>&2
exit 1
- ;;
- esac
+
+ fi
done
case "$with_arch" in