Match ld besides collect2 in gcov test
authorAlexandre Oliva <oliva@adacore.com>
Fri, 16 Aug 2019 03:38:23 +0000 (03:38 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Fri, 16 Aug 2019 03:38:23 +0000 (03:38 +0000)
commit2bfd0045b1a52540315042d0f55798c3679cd5f6
tree6d0b4eebeb235a17929c5a56df8a645da65e5042
parent3b5864f42104cc3c35568fa5f9e4b256c2b49bb8
Match ld besides collect2 in gcov test

The regexp that checks that -lgcov is linked in when --coverage is
passed to the compiler driver requires the command line to match
'/collect2'.  Some of our targets don't match that, but they match /ld
or ${target_alias}-ld depending on the testing scenario, so I'd like
to tweak the test to match those as well.

for  gcc/testsuite/ChangeLog

* gcc.misc-tests/options.exp: Match /ld and -ld besides
/collect2.

From-SVN: r274557
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.misc-tests/options.exp