Make the file name and descriptors static so that they are reused by
print-changed=diff. This avoids errors about being unable to create
temporary files when doing the later comparisons in a large compile.
This was originally in the code but was removed during the review
because I didn't remember that it prevented this problem.