[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
quoting issue in GCC's gcc/config.gcc ?
From: |
Matthias Klose |
Subject: |
quoting issue in GCC's gcc/config.gcc ? |
Date: |
Thu, 03 Mar 2011 18:41:00 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 |
seen with bash-4.2.6 with gcc-4.5, configured on i686-linux-gnu with
--enable-targets=all --with-arch-32=i686, works with bash-4.1:
case X"${with_cpu}" in
Xgeneric|Xatom|Xcore2|Xnocona|Xx86-64|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx|Xathlon64-sse3|Xk8-sse3|Xopteron-sse3)
;;
X)
if test x$with_cpu_64 = x; then
with_cpu_64=generic
fi
;;
*)
echo "Unsupported CPU used in
--with-cpu=$with_cpu, supported values:" 1>&2
echo "generic atom core2 nocona x86-64 amdfam10
barcelona k8 opteron athlon64 athlon-fx athlon64-sse3 k8-sse3 opteron-sse3" 1>&2
exit 1
;;
esac
else
tm_file="${tm_file} i386/linux.h"
fi
;;
executing as:
++ case X"${with_cpu}" in
++ echo 'Unsupported CPU used in --with-cpu=, supported values:'
Unsupported CPU used in --with-cpu=, supported values:
++ echo 'generic atom core2 nocona x86-64 amdfam10 barcelona k8 opteron athlon64
athlon-fx athlon64-sse3 k8-sse3 opteron-sse3'
generic atom core2 nocona x86-64 amdfam10 barcelona k8 opteron athlon64
athlon-fx athlon64-sse3 k8-sse3 opteron-sse3
++ exit 1
+ exit_status=1
with_cpu is unset, and the second case statement should be reached.
replacing
case X"${with_cpu}" in
with
case X${with_cpu} in
lets the match suceed with bash-4.2.6. bash-4.1.x works with both variants.
Matthias
- quoting issue in GCC's gcc/config.gcc ?,
Matthias Klose <=