Commit b73f075a by Paul Brook Committed by Paul Brook

config.gcc: Simplify arm --with-{cpu,tune} test.

	* config.gcc: Simplify arm --with-{cpu,tune} test.
	* config/arm/arm-cores.def: Document whitespace restrictions.

From-SVN: r81365
parent 5076da17
2004-04-30 Paul Brook <paul@codesourcery.com>
* config.gcc: Simplify arm --with-{cpu,tune} test.
* config/arm/arm-cores.def: Document whitespace restrictions.
2004-04-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> 2004-04-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
PR other/1963 PR other/1963
......
...@@ -2223,17 +2223,15 @@ fi ...@@ -2223,17 +2223,15 @@ fi
for which in cpu tune; do for which in cpu tune; do
# See if it matches any of the entries in arm-cores.def # See if it matches any of the entries in arm-cores.def
eval "val=\$with_$which" eval "val=\$with_$which"
[ x"$val" = x ] && val=unset if [ x"$val" = x ] \
for opt in `sed -e '/ARM_CORE/!d' \ || grep "^ARM_CORE($val," \
-e 's/ARM_CORE(\([^,]*\),.*$/\1/' \ ${srcdir}/config/arm/arm-cores.def \
${srcdir}/config/arm/arm-cores.def` unset . > /dev/null; then
do # Ok
[ x$opt = x"$val" ] && break true
done else
if [ $opt = . ]; then
echo "Unknown CPU used in --with-$which=$val" 1>&2 echo "Unknown CPU used in --with-$which=$val" 1>&2
exit 1 exit 1
fi fi
done done
......
...@@ -31,7 +31,9 @@ ...@@ -31,7 +31,9 @@
COSTS is the name of the rtx_costs routine to use. COSTS is the name of the rtx_costs routine to use.
If you update this table, you must update the "tune" attribute in 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(arm2, 2, FL_CO_PROC | FL_MODE26, slowmul)
ARM_CORE(arm250, 2, FL_CO_PROC | FL_MODE26, slowmul) ARM_CORE(arm250, 2, FL_CO_PROC | FL_MODE26, slowmul)
......
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