https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89896
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- It seems to be make looking for all.c via the LTRANS makefile and us invoking make -f /tmp/ccfGbAMc.mk -j2 all /tmp/cczwBPXD.ltrans0.ltrans.o: @gcc-8 '-xlto' '-c' '-fno-openmp' '-fno-openacc' '-mtune=generic' '-march=x86-64' '-fPIC' '-shared' '-fPIC' '-v' '-save-temps' '-mtune=generic' '-march=x86-64' '-fltrans-output-list=/tmp/cczwBPXD.ltrans.out' '-fltrans' '-o' '/tmp/cczwBPXD.ltrans0.ltrans.o' '/tmp/cczwBPXD.ltrans0.o' all: \ /tmp/cczwBPXD.ltrans0.ltrans.o which eventually leads to 4924 execve("/usr/bin/cc", ["cc", "all.c", "/tmp/cczwBPXD.ltrans0.ltrans.o", "-o", "all"], [/* 107 vars */]) = 0 if you make all.c invalid C then you see > gcc-8 -shared -fPIC -flto=2 -x c t.c all.c:1:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ at end of input invalid ^~~~~~~ make: *** [all] Error 1 lto-wrapper: fatal error: make returned 2 exit status compilation terminated.