]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Remove support for alternative Solaris 11.4 ld -V output
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Jun 2019 08:30:16 +0000 (08:30 +0000)
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Jun 2019 08:30:16 +0000 (08:30 +0000)
* configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
alternative Solaris 11.4 format.
* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@272377 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/configure
gcc/configure.ac

index 6b893fd13fabc3c8d620b1f22f84364d29c7c769..7a2e4203633916461c40f2df9e619458f3690371 100644 (file)
@@ -1,3 +1,9 @@
+2019-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
+       alternative Solaris 11.4 format.
+       * configure: Regenerate.
+
 2019-06-17  Tom de Vries  <tdevries@suse.de>
 
        * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
index 43f595e09a82d3a626b19c01ec13bb555f91e563..955e9ccc09ba2e416e52d747472076151608901f 100755 (executable)
@@ -23069,17 +23069,13 @@ if test $in_tree_ld != yes ; then
        #
        # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
        #
-       # In Solaris 11.4, this was changed to
-       #
-       # ld: Solaris ELF Utilities: 11.4-1.3123
-       #
        # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
        # numbers can be used in ld.so.1 feature checks even if a different
        # linker is configured.
        ld_ver=`$gcc_cv_ld -V 2>&1`
-       if echo "$ld_ver" | $EGREP 'Solaris Link Editors|Solaris ELF Utilities' > /dev/null; then
+       if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
          ld_vers=`echo $ld_ver | sed -n \
-           -e 's,^.*: \(5\|1[0-9]\)\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\2,p'`
+           -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
          ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
          ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
        fi
index cbc0c25fa2b565eff1493006555d0b20a48af515..066a6f4c95824fcbcb62d3f5c8f50f2fd09f6ad2 100644 (file)
@@ -2684,17 +2684,13 @@ if test $in_tree_ld != yes ; then
        #
        # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
        #
-       # In Solaris 11.4, this was changed to
-       #
-       # ld: Solaris ELF Utilities: 11.4-1.3123
-       #
        # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
        # numbers can be used in ld.so.1 feature checks even if a different
        # linker is configured.
        ld_ver=`$gcc_cv_ld -V 2>&1`
-       if echo "$ld_ver" | $EGREP 'Solaris Link Editors|Solaris ELF Utilities' > /dev/null; then
+       if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
          ld_vers=`echo $ld_ver | sed -n \
-           -e 's,^.*: \(5\|1[0-9]\)\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\2,p'`
+           -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
          ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
          ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
        fi