]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
configure.in: Fix minor problems with gas feature detection code.
authorJeffrey A Law <law@cygnus.com>
Mon, 20 Jul 1998 23:57:20 +0000 (23:57 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 20 Jul 1998 23:57:20 +0000 (17:57 -0600)
        * configure.in: Fix minor problems with gas feature detection code.
        * configure: Rebuilt.

From-SVN: r21316

gcc/ChangeLog
gcc/configure
gcc/configure.in

index 4159d8dc10423ba6b4df8d8375e989377a959c5e..e92f02e50329aa311a21a41d317f3981ed5147fc 100644 (file)
@@ -1,5 +1,8 @@
 Tue Jul 21 00:31:01 1998  Jeffrey A Law  (law@cygnus.com)
 
+       * configure.in: Fix minor problems with gas feature detection code.
+       * configure: Rebuilt.
+
        * gcc.c (do_spec): Issue a warning for '%[]' usage.
 
        * Undo this change.
index d6a5a056a5ea551235b09da00a7d58a2f3182ac9..d8f1cc30e3fc2dd4256f757735f7ce1b82ee16ed 100755 (executable)
@@ -5246,23 +5246,25 @@ elif [ -f $gcc_cv_as_gas_srcdir/configure.in ]; then
        done
        gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
        gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
-       # Gas version 2.6 and later support for .balign and .p2align.
-       # bytes to skip when using .p2align.
-       if [ "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2 ]; then
-               gcc_cv_as_alignment_features=".balign and .p2align"
-               cat >> confdefs.h <<\EOF
+       if [ x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x ]; then
+               # Gas version 2.6 and later support for .balign and .p2align.
+               # bytes to skip when using .p2align.
+               if [ "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2 ]; then
+                       gcc_cv_as_alignment_features=".balign and .p2align"
+                       cat >> confdefs.h <<\EOF
 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
 EOF
 
-       fi
-       # Gas version 2.8 and later support specifying the maximum
-       # bytes to skip when using .p2align.
-       if [ "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2 ]; then
-               gcc_cv_as_alignment_features=".p2align including maximum skip"
-               cat >> confdefs.h <<\EOF
+               fi
+               # Gas version 2.8 and later support specifying the maximum
+               # bytes to skip when using .p2align.
+               if [ "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2 ]; then
+                       gcc_cv_as_alignment_features=".p2align including maximum skip"
+                       cat >> confdefs.h <<\EOF
 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
 EOF
 
+               fi
        fi
 elif [ x$host = x$target ]; then
        # Native build.
index 6791547ec87b5be988270216f3521e551c90efc9..ec5e2563ae159fb4cbedd3de8790a89c6fb45302 100644 (file)
@@ -3341,17 +3341,19 @@ elif [[ -f $gcc_cv_as_gas_srcdir/configure.in ]]; then
        done
        gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([[0-9]]*\)"`
        gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[[0-9]]*\.\([[0-9]]*\)"`
-       # Gas version 2.6 and later support for .balign and .p2align.
-       # bytes to skip when using .p2align.
-       if [[ "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2 ]]; then
-               gcc_cv_as_alignment_features=".balign and .p2align"
-               AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
-       fi
-       # Gas version 2.8 and later support specifying the maximum
-       # bytes to skip when using .p2align.
-       if [[ "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2 ]]; then
-               gcc_cv_as_alignment_features=".p2align including maximum skip"
-               AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
+       if [[ x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x ]]; then
+               # Gas version 2.6 and later support for .balign and .p2align.
+               # bytes to skip when using .p2align.
+               if [[ "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2 ]]; then
+                       gcc_cv_as_alignment_features=".balign and .p2align"
+                       AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
+               fi
+               # Gas version 2.8 and later support specifying the maximum
+               # bytes to skip when using .p2align.
+               if [[ "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2 ]]; then
+                       gcc_cv_as_alignment_features=".p2align including maximum skip"
+                       AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
+               fi
        fi
 elif [[ x$host = x$target ]]; then
        # Native build.