Created attachment 10857 [details] Use x_unlink() instead of unlink() per HACKING.txt CAVEAT: The uploaded patch was created during the work to support -gsplit-dwarf (FissionDwarf) of GCC. (See bug 10005 ) Some of the patches have interdependence and if earlier patches are not applied, the later ones may fail. I will re-create patches appropriately depending on how an earlier patch is incorporated (or dropped). The whole list of broken patches below were uploaded in bug 10005 for convenience, but now separate bugzilla is filed to follow up on each of it (except for the main -gsplit-dwarf support, in bug 10005). 0001-Harden-logging-perror-replaced-with-cc_log-and-fatal.patch 0002-hash-file-creation-failure-is-recorded-now.patch *0003-Use-x_unlink-instead-of-unlink-per-HACKING.txt.patch 0004-make-sure-the-result-of-stat-call-is-checked.patch 0005-Enhance-log-message-add-prefix-var.-name-and-a-few-a.patch 0006-warning-about-missing-x_unlinks-when-get_file_from_c.patch 0007-Support-for-gsplit-dwarf.patch 0008-Missing-copy-of-diagnostics-file-in-case-of-failure.patch What this entry is about: Short explanation. 3: 0003-Use-x_unlink-instead-of-unlink-per-HACKING.txt.patch HACKING.txt suggests we should always use x_unlink() instead of plain unlink(). I noticed a use of unlink() crept in, and this patch fixes it by using x_unlink(). This is actually not related to the support for -gsplit-dwarf, and so I am filing this separate bugzilla. Since this changes ccache.c, it may interfere with the later patch application if this is not applied to ccache repository. (see bug 10005) TIA
Thanks, applied!
Included in v3.2.2.