public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-6632] gcn/mkoffload.cc: Pass -save-temps on for the hsaco step
@ 2023-03-13 13:25 Tobias Burnus
  0 siblings, 0 replies; only message in thread
From: Tobias Burnus @ 2023-03-13 13:25 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:7ef44579787af646d5bae13a91a49ef5d2048f5c

commit r13-6632-g7ef44579787af646d5bae13a91a49ef5d2048f5c
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Mon Mar 13 14:24:33 2023 +0100

    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.

Diff:
---
 gcc/config/gcn/mkoffload.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gcc/config/gcn/mkoffload.cc b/gcc/config/gcn/mkoffload.cc
index 9493f89fec3..61bc9273077 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")

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-13 13:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-13 13:25 [gcc r13-6632] gcn/mkoffload.cc: Pass -save-temps on for the hsaco step Tobias Burnus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).