]> git.ipfire.org Git - thirdparty/gcc.git/commit
lto-wrapper.cc: Add offload target name to 'offload_args' suffix
authorTobias Burnus <tburnus@baylibre.com>
Wed, 3 Apr 2024 13:47:12 +0000 (15:47 +0200)
committerTobias Burnus <tburnus@baylibre.com>
Wed, 3 Apr 2024 13:47:12 +0000 (15:47 +0200)
commit6f91cce9a314cd4bce16fe52a2ffbeb93d59320b
treeaea15638e6ffa2f5645a4f3ee48d83cb00a82acf
parentd60968de6961cef144a5cf8701ea0d3f4ea90f18
lto-wrapper.cc: Add offload target name to 'offload_args' suffix

lto-wrapper.cc's compile_offload_image calls mkoffload with
an @./a.offload_args argument ('a.' in case of, e.g., 'a.out'). However,
when generating code for both nvptx and gcn, they use the same name
with -save-temps. Hence, this commit adds a <target> + '.' before
'offload_args' in line with other offload-target-specific files.

gcc/ChangeLog:

* lto-wrapper.cc (compile_offload_image): Prefix 'offload_args'
suffix by the target name.
gcc/lto-wrapper.cc