Support single digit GCC version
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 11 Jul 2017 15:37:48 +0000 (08:37 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 11 Jul 2017 15:41:22 +0000 (08:41 -0700)
commit61a0857c0fb512ce6a2ba4315a37fcce744f6045
tree06ebdfc43ed01bdd4b8c10b4a4577c1f8a288b4e
parent04ac15ab07e6360320a1c8fab82d25340c22a21f
Support single digit GCC version

On Fedora 26, "g++ -dumpversion" displays "7", instead of "7.1.1".
Update selective.exp to support single digit GCC version.  Also
remove duplicated [4-9] version check.

* testsuite/ld-selective/selective.exp: Support single digit
GCC version.
ld/ChangeLog
ld/testsuite/ld-selective/selective.exp