Commit 170f2d18 by Alexandre Oliva Committed by Alexandre Oliva

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
parent 4eb1b87f
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> 2019-06-19 Marek Polacek <polacek@redhat.com>
PR c++/60364 - noreturn after first decl not diagnosed. PR c++/60364 - noreturn after first decl not diagnosed.
......
...@@ -4002,12 +4002,13 @@ case "${target}" in ...@@ -4002,12 +4002,13 @@ case "${target}" in
# see if --with-fpu matches any of the supported FPUs # see if --with-fpu matches any of the supported FPUs
if [ x"$with_fpu" != x ] ; then if [ x"$with_fpu" != x ] ; then
val=$with_fpu
fpu=`awk -f ${srcdir}/config/arm/parsecpu.awk \ fpu=`awk -f ${srcdir}/config/arm/parsecpu.awk \
-v cmd="chkfpu $with_fpu" \ -v cmd="chkfpu $val" \
${srcdir}/config/arm/arm-cpus.in` ${srcdir}/config/arm/arm-cpus.in`
if [ "$fpu" = "error"] if [ "$fpu" = "error" ]
then then
echo "Unknown target in --with-$which=$val" 1>&2 echo "Unknown target in --with-fpu=$val" 1>&2
exit 1 exit 1
fi fi
fi fi
......
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