https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82006
--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> --- Hmm, builtins.exp references $LTO_TORTURE_OPTIONS. Does the issue only reproduce with builtins.exp or also other .exp files? How does check_effective_target_lto behave on mingw32 currently? Unfortunately I don't speak TCL a bit (doing cut&paste programming on that part of GCC...) nor do I have a mingw setup to reproduce the issue.