[PR other/65021] mkoffloads -save-temps handling, and cleanup cleanup
authorThomas Schwinge <thomas@codesourcery.com>
Mon, 5 Oct 2015 14:07:50 +0000 (16:07 +0200)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Mon, 5 Oct 2015 14:07:50 +0000 (16:07 +0200)
commit4314a3efd0738504350bc683d8f977ff2ac25ddf
treef2069b4cfb07f51f8da67b4b75ac01d781eccd4f
parent1d10676d8c6146eec7afe6fa298bc8d113bcc0da
[PR other/65021] mkoffloads -save-temps handling, and cleanup cleanup

gcc/
PR other/65021
* config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
function to...
(mkoffload_cleanup): ... this.  Adjust all users.
(maybe_unlink): Look at save_temps and verbose flags instead of
debug flag.
(main): Parse "-save-temps" flag.
(generate_target_descr_file, generate_target_offloadend_file)
(generate_host_descr_file, prepare_target_image): Pass it on.
* config/nvptx/mkoffload.c (tool_cleanup): Implement.
(mkoffload_cleanup): New function.
(maybe_unlink): Look at save_temps and verbose flags instead of
debug flag.
(main): Instead of calling utils_cleanup, register atexit handler
for mkoffload_cleanup.
(main): Parse "-save-temps" flag.
(compile_native, main): Pass it on.
* lto-wrapper.c (compile_offload_image): Likewise.

From-SVN: r228488
gcc/ChangeLog
gcc/config/i386/intelmic-mkoffload.c
gcc/config/nvptx/mkoffload.c
gcc/lto-wrapper.c