This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/32287] gas version style changed causes warnings with configure
- From: "haubi at gentoo dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Oct 2007 20:47:32 -0000
- Subject: [Bug bootstrap/32287] gas version style changed causes warnings with configure
- References: <bug-32287-13830@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from haubi at gentoo dot org 2007-10-10 20:47 -------
Because 'grep -o' is not portable, what about this patch, done against
gcc-4.1.1:
--- gcc-4.1.1/gcc/configure.ac.orig Wed Oct 10 08:44:23 2007
+++ gcc-4.1.1/gcc/configure.ac Wed Oct 10 09:03:22 2007
@@ -2061,7 +2061,7 @@
as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
if echo "$as_ver" | grep GNU > /dev/null; then
changequote(,)dnl
- as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
+ as_ver=`echo $as_ver | sed -e 's/GNU assembler[^0-9]*
\([0-9.][0-9.]*\).*/\1/'`
as_major=`echo $as_ver | sed 's/\..*//'`
as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
changequote([,])dnl
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32287