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
+2019-08-16 Alexandre Oliva <oliva@adacore.com>
+
+ * gcc.misc-tests/options.exp: Match /ld and -ld besides
+ /collect2.
+
2019-08-15 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/91443
fail "$test (assembler options)"
return
}
- if {![regexp -- "/collect2(\\.exe)? .*$ld_pattern" $gcc_output]} {
+ # Match /collect2, /ld, or *-ld.
+ if {![regexp -- "(/collect2|\[-/\]ld)(\\.exe)? .*$ld_pattern" $gcc_output]} {
fail "$test (linker options)"
return
}