]> git.ipfire.org Git - thirdparty/gcc.git/commit
mkoffload: Cleanup temporary omp_requires_file
authorTobias Burnus <tobias@codesourcery.com>
Fri, 19 Aug 2022 14:09:28 +0000 (16:09 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Fri, 19 Aug 2022 14:09:28 +0000 (16:09 +0200)
commit713ec97e593bd4d9915a13bc4047f064fec0e24a
treed353f0f80504617372572a6d9fe929479f4db869
parent338a296dd76bf3d253a990ddb65e1bbef0c680a7
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.
gcc/config/gcn/mkoffload.cc
gcc/config/i386/intelmic-mkoffload.cc
gcc/config/nvptx/mkoffload.cc