[build] Remove support for alternative Solaris 11.4 ld -V output
Rainer Orth
ro@CeBiTec.Uni-Bielefeld.DE
Mon Jun 17 08:42:00 GMT 2019
I've been informed that parsing of Solaris ld -V output doesn't work
with Solaris sed. The problem is that the alternation used since
[build] Cleanup Solaris linker version checks
https://gcc.gnu.org/ml/gcc-patches/2017-11/msg00068.html
isn't recognized by /usr/bin/sed and /usr/xpg4/bin/sed which can only
handle BREs. This means that all features dependent on ld version
checking aren't supported anymore.
I hadn't recognized this before since I've been using GNU sed
exclusively. While Illumos sed could work around this by using sed -E
instead, which enables ERE support, this option isn't recognized by
Solaris sed.
Fortunately, the fix is simple: the alternative ld -V output format
handled since the patch above never made it into a non-beta version of
Solaris, and never will, so I'm just removing this again.
Bootstrapped without regressions on i386-pc-solaris2.11 and
sparc-sun-solaris2.11. Installed for mainline now; will backport to
the gcc-9 and gcc-8 branches after some soak time.
For good measure, I've also run Solaris bootstraps with /usr/bin in
front of /usr/gnu/bin, but this issue was the only difference.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
2019-06-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
alternative Solaris 11.4 format.
* configure: Regenerate.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sol2-alt-ld-V-remove.patch
Type: text/x-patch
Size: 1143 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190617/a8e75af5/attachment.bin>
More information about the Gcc-patches
mailing list