aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Wilson <wilson@cygnus.com>1998-01-13 18:01:56 +0000
committerJim Wilson <wilson@gcc.gnu.org>1998-01-13 10:01:56 -0800
commitc43143f6a1586c985fd02e660d4952a64b0494ef (patch)
tree3a06764c26e0600c359c0b0561f8a67dab8cf6f9
parentd45b3d875b96de69bb19a339fa9e94e2afe57964 (diff)
downloadgcc-c43143f6a1586c985fd02e660d4952a64b0494ef.zip
gcc-c43143f6a1586c985fd02e660d4952a64b0494ef.tar.gz
gcc-c43143f6a1586c985fd02e660d4952a64b0494ef.tar.bz2
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
-rw-r--r--gcc/ChangeLog6
-rwxr-xr-xgcc/configure8
-rw-r--r--gcc/configure.in8
3 files changed, 14 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index eac4608..4ce7bdc 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/configure b/gcc/configure
index d216f51..cacb53b 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -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
diff --git a/gcc/configure.in b/gcc/configure.in
index e135865..b60f54c 100644
--- a/gcc/configure.in
+++ b/gcc/configure.in
@@ -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