aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@adacore.com>2019-06-20 05:55:34 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2019-06-20 05:55:34 +0000
commit170f2d181d45b1197a2873d7dd055530e01d424a (patch)
treea45bf1e8393b2a032466e93d56a26581534245c8
parent4eb1b87f9508997cafa8b91aa855661475c40854 (diff)
downloadgcc-170f2d181d45b1197a2873d7dd055530e01d424a.zip
gcc-170f2d181d45b1197a2873d7dd055530e01d424a.tar.gz
gcc-170f2d181d45b1197a2873d7dd055530e01d424a.tar.bz2
fix ARM --with-fpu option checking and error message
Fix the test for failure in parsecpu's checking of the --with-fpu argument, and the error message that gets printed when the check fails. for gcc/ChangeLog * config.gcc: Fix ARM --with-fpu checking and error message. From-SVN: r272496
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config.gcc7
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5b67ad0..e69a0fc 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2019-06-20 Alexandre Oliva <oliva@adacore.com>
+
+ * config.gcc: Fix ARM --with-fpu checking and error message.
+
2019-06-19 Marek Polacek <polacek@redhat.com>
PR c++/60364 - noreturn after first decl not diagnosed.
diff --git a/gcc/config.gcc b/gcc/config.gcc
index fda048d..7119698 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -4002,12 +4002,13 @@ case "${target}" in
# see if --with-fpu matches any of the supported FPUs
if [ x"$with_fpu" != x ] ; then
+ val=$with_fpu
fpu=`awk -f ${srcdir}/config/arm/parsecpu.awk \
- -v cmd="chkfpu $with_fpu" \
+ -v cmd="chkfpu $val" \
${srcdir}/config/arm/arm-cpus.in`
- if [ "$fpu" = "error"]
+ if [ "$fpu" = "error" ]
then
- echo "Unknown target in --with-$which=$val" 1>&2
+ echo "Unknown target in --with-fpu=$val" 1>&2
exit 1
fi
fi