https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103823
--- Comment #7 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> --- Did not work: I think it's because it's lto-wrapper not lto1. Executing on host: /private/tmp/ibin/gcc/testsuite/g++/../../xg++ -B/private/tmp/ibin/gcc/testsuite/g++/../../ /tmp/gcc-darwin-arm6 4/gcc/testsuite/g++.dg/torture/pr31863.C -fdiagnostics-plain-output -nostdinc++ -I/tmp/ibin/aarch64-apple-darwin21.2.0/libstdc++ -v3/include/aarch64-apple-darwin21.2.0 -I/tmp/ibin/aarch64-apple-darwin21.2.0/libstdc++-v3/include -I/tmp/gcc-darwin-arm64/libstdc++ -v3/libsupc++ -I/tmp/gcc-darwin-arm64/libstdc++-v3/include/backward -I/tmp/gcc-darwin-arm64/libstdc++-v3/testsuite/util -fmessage-le ngth=0 -O2 -flto -L/private/tmp/ibin/aarch64-apple-darwin21.2.0/./libstdc++-v3/src/.libs -B/private/tmp/ibin/aarch64-apple-d arwin21.2.0/./libstdc++-v3/src/.libs -L/private/tmp/ibin/aarch64-apple-darwin21.2.0/./libstdc++-v3/src/.libs -B/private/tmp/ibin/aa rch64-apple-darwin21.2.0/./libitm/ -L/private/tmp/ibin/aarch64-apple-darwin21.2.0/./libitm/.libs -multiply_defined suppress -lm -o pr31863.exe (timeout = 600) spawn -ignore SIGHUP /private/tmp/ibin/gcc/testsuite/g++/../../xg++ -B/private/tmp/ibin/gcc/testsuite/g++/../../ /tmp/gcc-darwin-arm 64/gcc/testsuite/g++.dg/torture/pr31863.C -fdiagnostics-plain-output -nostdinc++ -I/tmp/ibin/aarch64-apple-darwin21.2.0/libstdc++-v3 /include/aarch64-apple-darwin21.2.0 -I/tmp/ibin/aarch64-apple-darwin21.2.0/libstdc++-v3/include -I/tmp/gcc-darwin-arm64/libstdc++-v3 /libsupc++ -I/tmp/gcc-darwin-arm64/libstdc++-v3/include/backward -I/tmp/gcc-darwin-arm64/libstdc++-v3/testsuite/util -fmessage-lengt h=0 -O2 -flto -L/private/tmp/ibin/aarch64-apple-darwin21.2.0/./libstdc++-v3/src/.libs -B/private/tmp/ibin/aarch64-apple-darwin21.2.0 /./libstdc++-v3/src/.libs -L/private/tmp/ibin/aarch64-apple-darwin21.2.0/./libstdc++-v3/src/.libs -B/private/tmp/ibin/aarch64-apple- darwin21.2.0/./libitm/ -L/private/tmp/ibin/aarch64-apple-darwin21.2.0/./libitm/.libs -multiply_defined suppress -lm -o pr31863.exe lto-wrapper: warning: using serial compilation of 2 LTRANS jobs lto-wrapper: note: see the ESC]8;;https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-flto^G'-flto' option documentation ESC]8;;^G for more information FAIL: g++.dg/torture/pr31863.C -O2 -flto (test for excess errors) Excess errors: lto-wrapper: warning: using serial compilation of 2 LTRANS jobs I am attaching a slightly amended version, accepting stuff after "lto", which passes.