https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78213
--- Comment #6 from David Malcolm <dmalcolm at gcc dot gnu.org> --- (In reply to Aldy Hernandez from comment #5) > Confirmed with a cross build with: > > cat >a.c <<EOF > int i; > void bar(); > void foo() > { > while (i--) > bar(); > } > EOF > ./xgcc -fself-test -S a.c -B./ FWIW I've only been attempting to support running -fself-test with *empty* source files; expect tests to start failing if you try to also compile something at the same time.