Avoid shell errors when target_cpu_default* contains a | character.
* configure.in (target_cpu_default, target_cpu_default2): Use double quotes around them when testing their value. * configure: Rebuilt. From-SVN: r17333
This commit is contained in:
parent
d45b3d875b
commit
c43143f6a1
@ -1,3 +1,9 @@
|
||||
Tue Jan 13 17:50:55 1998 Jim Wilson <wilson@cygnus.com>
|
||||
|
||||
* configure.in (target_cpu_default, target_cpu_default2): Use double
|
||||
quotes around them when testing their value.
|
||||
* configure: Rebuilt.
|
||||
|
||||
Tue Jan 13 09:07:44 1998 John Carr <jfc@mit.edu>
|
||||
|
||||
* gengenrtl.c (gencode): Emit new function obstack_alloc_rtx
|
||||
|
8
gcc/configure
vendored
8
gcc/configure
vendored
@ -5393,7 +5393,7 @@ for machine in $build $host $target; do
|
||||
|
||||
if [ x$gas = xyes ]
|
||||
then
|
||||
if [ x$target_cpu_default2 = x ]
|
||||
if [ "$target_cpu_default2" = "" ]
|
||||
then
|
||||
target_cpu_default2="MASK_GAS"
|
||||
else
|
||||
@ -5494,9 +5494,9 @@ for machine in $build $host $target; do
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ x$target_cpu_default2 != x ]
|
||||
if [ "$target_cpu_default2" != "" ]
|
||||
then
|
||||
if [ x$target_cpu_default != x ]
|
||||
if [ "$target_cpu_default" != "" ]
|
||||
then
|
||||
target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
|
||||
else
|
||||
@ -5647,7 +5647,7 @@ do
|
||||
|
||||
# Define TARGET_CPU_DEFAULT if the system wants one.
|
||||
# This substitutes for lots of *.h files.
|
||||
if [ x$target_cpu_default != x -a $link = tm.h ]
|
||||
if [ "$target_cpu_default" != "" -a $link = tm.h ]
|
||||
then
|
||||
echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
|
||||
fi
|
||||
|
@ -2568,7 +2568,7 @@ for machine in $build $host $target; do
|
||||
|
||||
if [[ x$gas = xyes ]]
|
||||
then
|
||||
if [[ x$target_cpu_default2 = x ]]
|
||||
if [[ "$target_cpu_default2" = "" ]]
|
||||
then
|
||||
target_cpu_default2="MASK_GAS"
|
||||
else
|
||||
@ -2669,9 +2669,9 @@ for machine in $build $host $target; do
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ x$target_cpu_default2 != x ]]
|
||||
if [[ "$target_cpu_default2" != "" ]]
|
||||
then
|
||||
if [[ x$target_cpu_default != x ]]
|
||||
if [[ "$target_cpu_default" != "" ]]
|
||||
then
|
||||
target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
|
||||
else
|
||||
@ -2822,7 +2822,7 @@ do
|
||||
|
||||
# Define TARGET_CPU_DEFAULT if the system wants one.
|
||||
# This substitutes for lots of *.h files.
|
||||
if [[ x$target_cpu_default != x -a $link = tm.h ]]
|
||||
if [[ "$target_cpu_default" != "" -a $link = tm.h ]]
|
||||
then
|
||||
echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user