diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index aeaaac0a4a5..55c59822dde 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-08-16 Alexandre Oliva + + * gcc.misc-tests/options.exp: Match /ld and -ld besides + /collect2. + 2019-08-15 Thomas Koenig PR fortran/91443 diff --git a/gcc/testsuite/gcc.misc-tests/options.exp b/gcc/testsuite/gcc.misc-tests/options.exp index 79535238fca..c50784c84f3 100644 --- a/gcc/testsuite/gcc.misc-tests/options.exp +++ b/gcc/testsuite/gcc.misc-tests/options.exp @@ -65,7 +65,8 @@ proc check_for_all_options {language gcc_options compiler_pattern as_pattern ld_ 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 }