]> git.ipfire.org Git - thirdparty/gcc.git/commit
mkoffload: Cleanup temporary omp_requires_file
authorTobias Burnus <tobias@codesourcery.com>
Fri, 19 Aug 2022 14:21:43 +0000 (16:21 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Fri, 19 Aug 2022 14:21:43 +0000 (16:21 +0200)
commit2e67ccf9bb71950e5bb98de365b06e336b06fa87
tree0ee9a33d8a6cd52490055ad8b8c6cf90972db388
parentee99f753bd953f801c20be8ef5aaaacbcc17ec75
mkoffload: Cleanup temporary omp_requires_file

The file (suffix ".mkoffload.omp_requires") used to save the 'omp requires'
data has to be passed to maybe_unlink for cleanup or -v -save-temps stderr
diagnostic. That was missed before. - For GCN, the same has to be done for
the files with suffix ".mkoffload.dbg.o".

gcc/ChangeLog:

* config/gcn/mkoffload.cc (main): Add omp_requires_file and dbgobj to
files_to_cleanup.
* config/i386/intelmic-mkoffload.cc (prepare_target_image): Add
omp_requires_file to temp_files.
* config/nvptx/mkoffload.cc (omp_requires_file): New global static var.
(main): Remove local omp_requires_file var.
(tool_cleanup): Handle omp_requires_file.

(cherry picked from commit 713ec97e593bd4d9915a13bc4047f064fec0e24a)
gcc/ChangeLog.omp
gcc/config/gcn/mkoffload.cc
gcc/config/i386/intelmic-mkoffload.cc
gcc/config/nvptx/mkoffload.cc