This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: tweak _gcc_COMPUTE_GAS_VERSION
- From: Anthony Green <green at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: 23 Jul 2003 20:52:35 -0700
- Subject: Patch: tweak _gcc_COMPUTE_GAS_VERSION
- Organization: Red Hat, Inc.
Some binutils versions may not have a "patch" version component.
With the current configury, this causes some feature tests (like
.hidden support) to fail. Is something like this patch ok? (along
with a rebuilt configure)...
2003-07-23 Anthony Green <green@redhat.com>
* aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Force patch level to
0 if not provided.
Index: gcc/aclocal.m4
===================================================================
RCS file: /cvs/gcc/gcc/gcc/aclocal.m4,v
retrieving revision 1.74
diff -u -p -r1.74 aclocal.m4
--- gcc/aclocal.m4 12 Jul 2003 20:03:13 -0000 1.74
+++ gcc/aclocal.m4 24 Jul 2003 03:41:47 -0000
@@ -680,6 +680,9 @@ 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]]*\)"`
gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[[0-9]]*\.[[0-9]]*\.\([[0-9]]*\)"`
+if x$gcc_cv_gas_patch_version == x; then
+ gcc_cv_gas_patch_version="0"
+fi
gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
+ $gcc_cv_gas_minor_version \) \* 1000 \
+ $gcc_cv_gas_patch_version`
--
Anthony Green <green@redhat.com>
Red Hat, Inc.