From: pbrook Date: Fri, 30 Apr 2004 20:29:23 +0000 (+0000) Subject: * config.gcc: Simplify arm --with-{cpu,tune} test. X-Git-Tag: upstream/4.9.2~71531 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1cfd705ec9ac186caf8d8a8bc2489ab20f7b3c69;p=platform%2Fupstream%2Flinaro-gcc.git * config.gcc: Simplify arm --with-{cpu,tune} test. * config/arm/arm-cores.def: Document whitespace restrictions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81365 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f6a66b0..b24e858 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-04-30 Paul Brook + + * config.gcc: Simplify arm --with-{cpu,tune} test. + * config/arm/arm-cores.def: Document whitespace restrictions. + 2004-04-30 Rainer Orth PR other/1963 diff --git a/gcc/config.gcc b/gcc/config.gcc index f05d250..844624c 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2223,17 +2223,15 @@ fi for which in cpu tune; do # See if it matches any of the entries in arm-cores.def eval "val=\$with_$which" - [ 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 - + if [ x"$val" = x ] \ + || grep "^ARM_CORE($val," \ + ${srcdir}/config/arm/arm-cores.def \ + > /dev/null; then + # Ok + true + else + echo "Unknown CPU used in --with-$which=$val" 1>&2 + exit 1 fi done diff --git a/gcc/config/arm/arm-cores.def b/gcc/config/arm/arm-cores.def index eeb50aa..e31bc12 100644 --- a/gcc/config/arm/arm-cores.def +++ b/gcc/config/arm/arm-cores.def @@ -31,7 +31,9 @@ COSTS is the name of the rtx_costs routine to use. If you update this table, you must update the "tune" attribute in - arm.md. */ + arm.md. + + Some tools assume no writespace up to the first "," in each entry. */ ARM_CORE(arm2, 2, FL_CO_PROC | FL_MODE26, slowmul) ARM_CORE(arm250, 2, FL_CO_PROC | FL_MODE26, slowmul)