https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121215
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I can reproduce it with just: make check-gcc RUNTESTFLAGS="tree-prof.exp=afdo-crossmodule-1.c tree-ssa.exp=pr67891.c" (well I had to hack it so check_profiling_available for -fauto-profile would return 0). So basically dg-require-profiling returning false does not cleanup the additional_sources .