summaryrefslogtreecommitdiff
path: root/gcc/configure
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-07-09 00:27:21 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-07-09 00:27:21 +0000
commitf9423f540611c4d173405db6d096a1f8c623bee5 (patch)
tree2c11e8768375a58ac458e5a70a031a44a7cd6643 /gcc/configure
parentea6477ff600a0e3f17efc8ea5fec287d66e77d7c (diff)
downloadgcc-f9423f540611c4d173405db6d096a1f8c623bee5.tar.gz
* configure.in: Check if the assembler supports ".balign" and
".p2align" and define HAVE_GAS_BALIGN_AND_P2ALIGN appropriately. * acconfig.h (HAVE_GAS_BALIGN_AND_P2ALIGN): New tag. * i386/gas.h (ASM_OUTPUT_ALIGN): If the assembler has support for ".balign" then use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21023 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure')
-rwxr-xr-xgcc/configure20
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/configure b/gcc/configure
index 654ec63724e..9e59376e064 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -5237,6 +5237,15 @@ elif [ -f $srcdir/../gas/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
+#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
@@ -5251,6 +5260,17 @@ elif [ x$host = x$target ]; then
gcc_cv_as=as$host_exeext
fi
if [ x$gcc_cv_as != x ]; then
+ # Check if we have .balign and .p2align
+ echo ".balign 4" > conftest.s
+ echo ".p2align 2" >> conftest.s
+ if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
+ gcc_cv_as_alignment_features=".balign and .p2align"
+ cat >> confdefs.h <<\EOF
+#define HAVE_GAS_BALIGN_AND_P2ALIGN 1
+EOF
+
+ fi
+ rm -f conftest.s conftest.o
# Check if specifying the maximum bytes to skip when
# using .p2align is supported.
echo ".p2align 4,,7" > conftest.s