https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119215
--- Comment #25 from James K. Lowden <jklowden at gcc dot gnu.org> ---
I overstated the case; I never successfully built cobol1 with lto.
$ head build-lto/config.log | sed -Ene "/[/]config/ s:${PWD}:...:gp" && grep
cannot build-lto/libdecnumber/config.log
$ .../configure --prefix=/tmp/gcc/lto --with-build-config=bootstrap-lto
--enable-plugin --with-linker-plugin --disable-multilib
--enable-languages=cobol
xgcc: fatal error: cannot execute 'lto1': posix_spawnp: No such file or
directory
configure:2789: error: C compiler cannot create executables
The generated code is in the cdf namespace. That solves a bunch of LTO
problems. But if there are other LTO issues, I don't know.