revamp intelmic-mkoffload aux dump names
commit0e3ad7e4d030b5bd3598cd3955947e3130a24339
authorAlexandre Oliva <oliva@adacore.com>
Fri, 24 Jul 2020 18:38:40 +0000 (24 15:38 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Fri, 24 Jul 2020 19:13:42 +0000 (24 16:13 -0300)
tree7f7d0698f6c18ec377bbea8744989790718cc51c
parentc1b9cb1a83b0d6485d9922ecef097d250a22d830
revamp intelmic-mkoffload aux dump names

Rework intelmic-mkoffload into the new aux and dump file naming
semantics.  Obey -save-temps.

Co-Authored-By: Thomas Schwinge <thomas@codesourcery.com>
for  gcc/ChangeLog

* config/i386/intelmic-mkoffload.c
(generate_target_descr_file): Use dumppfx for save_temps
files.  Pass -dumpbase et al down to the compiler.
(generate_target_offloadend_file): Likewise.
(generate_host_descr_file): Likewise.
(prepare_target_image): Likewise.  Move out_obj_filename
setting...
(main): ... here.  Detect -dumpbase, set dumppfx too.
gcc/config/i386/intelmic-mkoffload.c