https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78129
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- Created attachment 39930 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39930&action=edit patch Does the attached fix it? (I lack a testcase to easily reproduce a failing WPA stage after it has written some ltrans file) OTOH I wonder where we emit errors during lto_wpa_write_files ...