https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64206
--- Comment #5 from David Malcolm <dmalcolm at gcc dot gnu.org> --- (In reply to David Malcolm from comment #4) > Created attachment 34233 [details] > Updated patch I've introduced a gcc::jit::tempdir class in r218533 (which appears to be a reasonable simplification in itself) Attachment 34233 implements the idea of using this tempdir class to defer cleanup until later. Does this fix the symptoms you're seeing?