public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Tobias Burnus <burnus@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r13-6632] gcn/mkoffload.cc: Pass -save-temps on for the hsaco step
Date: Mon, 13 Mar 2023 13:25:28 +0000 (GMT)	[thread overview]
Message-ID: <20230313132528.262073858D1E@sourceware.org> (raw)

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")

                 reply	other threads:[~2023-03-13 13:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230313132528.262073858D1E@sourceware.org \
    --to=burnus@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).