https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82006
--- Comment #13 from Rainer Emrich <rai...@emrich-ebersheim.de> --- (In reply to rguent...@suse.de from comment #12) > On Mon, 11 Dec 2017, rai...@emrich-ebersheim.de wrote: > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82006 > > > > --- Comment #11 from Rainer Emrich <rai...@emrich-ebersheim.de> --- > > (In reply to Richard Biener from comment #10) > > > Hmm, builtins.exp references $LTO_TORTURE_OPTIONS. Does the issue only > > > reproduce with builtins.exp or also other .exp files? > > As you see in comment 8 there are 14 .exp files showing an issue. A single > > one > > showing "ERROR: can't read "testname_with_flags": no such variable", which > > is > > builtins.exp. The other 13 ones all show "ERROR: torture-init: > > torture_without_loops is not empty as expected". These 13 .exp files are: > > ieee.exp > > unsorted.exp > > format.exp > > pch.exp > > sancov.exp > > simulate-thread.exp > > sso.exp > > stackalign.exp > > tls.exp > > tsan.exp > > i386-prefetch.exp > > math-torture.exp > > ppc-fortran.exp > > > > > > > > How does check_effective_target_lto behave on mingw32 currently? > > How can I check this. Any hints? > > No idea for details but when running lto.exp I see > > Executing on host: /home/abuild/rguenther/trunk2-g/gcc/xgcc > -B/home/abuild/rguenther/trunk2-g/gcc/ -fno-diagnostics-show-caret > -fdiagnostics-color=never -flto -c -o lto19653.o lto19653.c (timeout > = 300) > spawn /home/abuild/rguenther/trunk2-g/gcc/xgcc > -B/home/abuild/rguenther/trunk2-g/gcc/ -fno-diagnostics-show-caret > -fdiagnostics-color=never -flto -c -o lto19653.o lto19653.c^M > Executing on host: /home/abuild/rguenther/trunk2-g/gcc/xgcc > -B/home/abuild/rguenther/trunk2-g/gcc/ linker_plugin19653.c > -fno-diagnostics-show-caret -fdiagnostics-color=never -flto > -fuse-linker-plugin -lm -o linker_plugin19653.exe (timeout = 300) > spawn /home/abuild/rguenther/trunk2-g/gcc/xgcc > -B/home/abuild/rguenther/trunk2-g/gcc/ linker_plugin19653.c > -fno-diagnostics-show-caret -fdiagnostics-color=never -flto > -fuse-linker-plugin -lm -o linker_plugin19653.exe^M > Executing on host: /home/abuild/rguenther/trunk2-g/gcc/xgcc > -B/home/abuild/rguenther/trunk2-g/gcc/ linker_plugin19653.c > -fno-diagnostics-show-caret -fdiagnostics-color=never -flto > -fuse-linker-plugin -o linker_plugin19653.exe (timeout = 300) > ... > > those appear to be from the lto and linker-plugin meta-testing. I get: Running /opt/devel/gnu/src/gcc-mingw-w64/gcc-8.0.0/gcc/testsuite/gcc.dg/lto/lto.exp ... Executing on host: /opt/devel/SCRATCH/tmp.N811Eo0nBC/gcc-8.0.0/gcc-8.0.0/gcc/xgcc -B/opt/devel/SCRATCH/tmp.N811Eo0nBC/gcc-8.0.0/gcc-8.0.0/gcc/ linker_plugin29932.c -fno-diagnostics-show-caret -fdiagnostics-color=never -flto -fuse-linker-plugin -o linker_plugin29932.exe (timeout = 300) spawn /opt/devel/SCRATCH/tmp.N811Eo0nBC/gcc-8.0.0/gcc-8.0.0/gcc/xgcc -B/opt/devel/SCRATCH/tmp.N811Eo0nBC/gcc-8.0.0/gcc-8.0.0/gcc/ linker_plugin29932.c -fno-diagnostics-show-caret -fdiagnostics-color=never -flto -fuse-linker-plugin -o linker_plugin29932.exe LD_LIBRARY_PATH=:/opt/devel/SCRATCH/tmp.N811Eo0nBC/gcc-8.0.0/gcc-8.0.0/gcc:/opt/devel/SCRATCH/tmp.N811Eo0nBC/gcc-8.0.0/gcc-8.0.0/x86_64-w64-mingw32/./libatomic/.libs:. LD_RUN_PATH=:/opt/devel/SCRATCH/tmp.N811Eo0nBC/gcc-8.0.0/gcc-8.0.0/gcc:/opt/devel/SCRATCH/tmp.N811Eo0nBC/gcc-8.0.0/gcc-8.0.0/x86_64-w64-mingw32/./libatomic/.libs:. SHLIB_PATH=:/opt/devel/SCRATCH/tmp.N811Eo0nBC/gcc-8.0.0/gcc-8.0.0/gcc:/opt/devel/SCRATCH/tmp.N811Eo0nBC/gcc-8.0.0/gcc-8.0.0/x86_64-w64-mingw32/./libatomic/.libs:. LD_LIBRARY_PATH_32=:/opt/devel/SCRATCH/tmp.N811Eo0nBC/gcc-8.0.0/gcc-8.0.0/gcc:/opt/devel/SCRATCH/tmp.N811Eo0nBC/gcc-8.0.0/gcc-8.0.0/x86_64-w64-mingw32/./libatomic/.libs:. LD_LIBRARY_PATH_64=:/opt/devel/SCRATCH/tmp.N811Eo0nBC/gcc-8.0.0/gcc-8.0.0/gcc:/opt/devel/SCRATCH/tmp.N811Eo0nBC/gcc-8.0.0/gcc-8.0.0/x86_64-w64-mingw32/./libatomic/.libs:. DYLD_LIBRARY_PATH=:/opt/devel/SCRATCH/tmp.N811Eo0nBC/gcc-8.0.0/gcc-8.0.0/gcc:/opt/devel/SCRATCH/tmp.N811Eo0nBC/gcc-8.0.0/gcc-8.0.0/x86_64-w64-mingw32/./libatomic/.libs:. Executing on host: /opt/devel/SCRATCH/tmp.N811Eo0nBC/gcc-8.0.0/gcc-8.0.0/gcc/xgcc -B/opt/devel/SCRATCH/tmp.N811Eo0nBC/gcc-8.0.0/gcc-8.0.0/gcc/ -fno-diagnostics-show-caret -fdiagnostics-color=never -O0 -flto -flto-partition=none -fuse-linker-plugin -c -o c_lto_20080908_0.o /opt/devel/gnu/src/gcc-mingw-w64/gcc-8.0.0/gcc/testsuite/gcc.dg/lto/20080908_0.c (timeout = 300) spawn /opt/devel/SCRATCH/tmp.N811Eo0nBC/gcc-8.0.0/gcc-8.0.0/gcc/xgcc -B/opt/devel/SCRATCH/tmp.N811Eo0nBC/gcc-8.0.0/gcc-8.0.0/gcc/ -fno-diagnostics-show-caret -fdiagnostics-color=never -O0 -flto -flto-partition=none -fuse-linker-plugin -c -o c_lto_20080908_0.o /opt/devel/gnu/src/gcc-mingw-w64/gcc-8.0.0/gcc/testsuite/gcc.dg/lto/20080908_0.c PASS: gcc.dg/lto/20080908 c_lto_20080908_0.o assemble, -O0 -flto -flto-partition=none -fuse-linker-plugin Executing on host: /opt/devel/SCRATCH/tmp.N811Eo0nBC/gcc-8.0.0/gcc-8.0.0/gcc/xgcc -B/opt/devel/SCRATCH/tmp.N811Eo0nBC/gcc-8.0.0/gcc-8.0.0/gcc/ -fno-diagnostics-show-caret -fdiagnostics-color=never -O2 -flto -flto-partition=none -fuse-linker-plugin -fno-fat-lto-objects -c -o c_lto_20080908_0.o /opt/devel/gnu/src/gcc-mingw-w64/gcc-8.0.0/gcc/testsuite/gcc.dg/lto/20080908_0.c (timeout = 300) spawn /opt/devel/SCRATCH/tmp.N811Eo0nBC/gcc-8.0.0/gcc-8.0.0/gcc/xgcc -B/opt/devel/SCRATCH/tmp.N811Eo0nBC/gcc-8.0.0/gcc-8.0.0/gcc/ -fno-diagnostics-show-caret -fdiagnostics-color=never -O2 -flto -flto-partition=none -fuse-linker-plugin -fno-fat-lto-objects -c -o c_lto_20080908_0.o /opt/devel/gnu/src/gcc-mingw-w64/gcc-8.0.0/gcc/testsuite/gcc.dg/lto/20080908_0.c PASS: gcc.dg/lto/20080908 c_lto_20080908_0.o assemble, -O2 -flto -flto-partition=none -fuse-linker-plugin -fno-fat-lto-objects . . .