As I noted in <http://gcc.gnu.org/ml/gcc-patches/2008-09/msg00905.html>, test executables with no .exe or .<something> suffix are problematic for testing on Windows targets. This patch fixes the LTO tests to use such suffixes, like other tests.
Tested with cross to i686-mingw32. OK to commit? 2011-10-20 Joseph Myers <jos...@codesourcery.com> * lib/lto.exp (lto-execute): Use .exe suffix for test executable names. Index: gcc/testsuite/lib/lto.exp =================================================================== --- gcc/testsuite/lib/lto.exp (revision 180200) +++ gcc/testsuite/lib/lto.exp (working copy) @@ -500,7 +500,7 @@ verbose "Testing $testcase, $option" # There's a unique name for each executable we generate. - set execname "${execbase}-${count}1" + set execname "${execbase}-${count}1.exe" incr count file_on_host delete $execname -- Joseph S. Myers jos...@codesourcery.com