+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>
PR other/1963
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
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)