diff options
author | Tobias Burnus <tobias@codesourcery.com> | 2022-08-22 09:49:52 +0200 |
---|---|---|
committer | Tobias Burnus <tobias@codesourcery.com> | 2022-08-22 09:49:52 +0200 |
commit | e228683b244c6afbe3bdfef7ba607fbda813bd0f (patch) | |
tree | e05ef5e10ea703a758b1ba6e4ad0f50c723d9124 /libcpp | |
parent | c77fae1ca796d6ea06d5cd437909905c3d3d771c (diff) | |
download | gcc-e228683b244c6afbe3bdfef7ba607fbda813bd0f.zip gcc-e228683b244c6afbe3bdfef7ba607fbda813bd0f.tar.gz gcc-e228683b244c6afbe3bdfef7ba607fbda813bd0f.tar.bz2 |
lto-wrapper.cc: Delete offload_names temp files in case of error [PR106686]
Usually, the caller takes care of the .o files for the offload compilers
(suffix: ".target.o"). However, if an error occurs during processing
(e.g. fatal error by lto1), they were not deleted.
gcc/ChangeLog:
PR lto/106686
* lto-wrapper.cc (free_array_of_ptrs): Move before tool_cleanup.
(tool_cleanup): Unlink offload_names.
(compile_offload_image): Take filename argument to set it early.
(compile_images_for_offload_targets): Update call; set
offload_names to NULL after freeing the array.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions