]> git.ipfire.org Git - thirdparty/gcc.git/commit
gcn/mkoffload: Cleanup temporary dbgobj file
authorTobias Burnus <tobias@codesourcery.com>
Tue, 23 Aug 2022 09:35:01 +0000 (11:35 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Tue, 23 Aug 2022 09:35:01 +0000 (11:35 +0200)
commit4218d3abfde1aa3dadfdacb55893f08489e8a064
tree92c15286171cb6c70694dc644267605717d60299
parent50b7cf395656ccd32d4d5d8e0e338135d28f52f6
gcn/mkoffload: Cleanup temporary dbgobj file

The file (suffix ".mkoffload.dbg.o") used to save the dbgobj data
data has to be passed to maybe_unlink for cleanup or -v -save-temps stderr
diagnostic. That was missed before.

This is a partial backport of commit r13-2125, "mkoffload: Cleanup
temporary omp_requires_file", only for GCN's mkoffload and its dbgobj
file as 'omp requires' is not supported on GCC 12 and, hence,
omp_requires_file does not exist on this branch.

gcc/ChangeLog:

* config/gcn/mkoffload.cc (main): Add dbgobj to files_to_cleanup.

(cherry picked from commit 713ec97e593bd4d9915a13bc4047f064fec0e24a)
gcc/config/gcn/mkoffload.cc