diff options
author | Tobias Burnus <tobias@codesourcery.com> | 2023-03-13 14:24:33 +0100 |
---|---|---|
committer | Tobias Burnus <tobias@codesourcery.com> | 2023-03-13 14:24:33 +0100 |
commit | 7ef44579787af646d5bae13a91a49ef5d2048f5c (patch) | |
tree | fc70849ea3807788d50ad044d05a0287e8ff1249 | |
parent | 336ce497fb266268a79544f00dd3bbd24cf3a4d6 (diff) | |
download | gcc-7ef44579787af646d5bae13a91a49ef5d2048f5c.zip gcc-7ef44579787af646d5bae13a91a49ef5d2048f5c.tar.gz gcc-7ef44579787af646d5bae13a91a49ef5d2048f5c.tar.bz2 |
gcn/mkoffload.cc: Pass -save-temps on for the hsaco step
For the assembly/linking step of the device code, the "-save-temps" was not
passed on, such that amdgcn-amdhsa/bin/as and amdgcn-amdhsa's collect2
were invoked with '-o /tmp/cc...' and '@/tmp/cc...', respectively.
The -dump... prefix (...mkoffload.hsaco) was already properly set.
gcc/ChangeLog:
* config/gcn/mkoffload.cc (main): Pass -save-temps on for the
hsaco assemble/link.
-rw-r--r-- | gcc/config/gcn/mkoffload.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/gcn/mkoffload.cc b/gcc/config/gcn/mkoffload.cc index 9493f89..61bc927 100644 --- a/gcc/config/gcn/mkoffload.cc +++ b/gcc/config/gcn/mkoffload.cc @@ -1082,6 +1082,9 @@ main (int argc, char **argv) if (verbose) obstack_ptr_grow (&ld_argv_obstack, "-v"); + if (save_temps) + obstack_ptr_grow (&ld_argv_obstack, "-save-temps"); + for (int i = 1; i < argc; i++) if (startswith (argv[i], "-l") || startswith (argv[i], "-Wl") |