[Bug bootstrap/32287] gas version style changed causes warnings with configure
hjl dot tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Jan 21 21:59:00 GMT 2008
------- Comment #10 from hjl dot tools at gmail dot com 2008-01-21 21:43 -------
(In reply to comment #9)
>
> HJ, Richi, I can find a lot of confused versions of HJ's patch in that thread,
> which starts here:
> http://gcc.gnu.org/ml/gcc-patches/2007-09/msg01170.html
It is a good idea.
> Nowhere can I find the actual approval. The only version which was approved
> was safe, but the patch as applied is unsafe. If you put a .* there, then it
> will match any "xx.yy" string anywhere in the version string, including after
> the binutils version! This does not mess up on --with-pkgversion on new
> versions of binutils but only because sed will use the shorter match, and the
> binutils version comes second.
>
> + -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p' \
> -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
>
> Note that second line will never match now.
The second line isn't needed. I checked the following versions:
./check "GNU ld version 2.17.50.0.6-5.fc6 20061020"
./check "GNU ld version 2.17.50.0.12-4 20070128"
./check "GNU ld version 2.15.92.0.2 20040927"
./check "GNU ld (GNU Binutils) 2.18.50.20070913"
./check "GNU ld (Linux/GNU Binutils) 2.18.50.0.1.20070906"
./check "GNU ld (GNU Binutils) 2.17.50.20070726-12 (SUSE Linux)"
./check "GNU assembler (GNU Binutils for Debian) 2.17.50.20070426"
and they work fine. Do you have more to add?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32287
More information about the Gcc-bugs
mailing list