https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116788
--- Comment #7 from w.steinwender at freenet dot de --- Compilation with -save-temps works if EACCES and ENOTDIR is added to the list after if. cc1 -v reports "ignoring nonexistent directory". Maybe remove_duplicates() should return different reasons for different errnos.