https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85870
Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW --- Comment #4 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> --- (In reply to Martin Liška from comment #3) > Can't reproduce with GCC 7.3.0 on x86_64: > > + gcc-7 -O2 -flto -c test_1.i -o test_1.o > + gcc-7 -O2 -flto -c test_2.i -o test_2.o > + gcc-7 test_1.o test_2.o > /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: > /usr/lib64/gcc/x86_64-suse-linux/7/../../../../lib64/crt1.o: in function > `_start': > /home/abuild/rpmbuild/BUILD/glibc-2.27/csu/../sysdeps/x86_64/start.S:104: > undefined reference to `main' > collect2: error: ld returned 1 exit status > > Richi how did you achieve to reproduce that? It's still failing on aarch64-none-linux-gnu. So that doesn't mean this goes waiting.