public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
From: Nick Clifton <nickc@sourceware.org>
To: bfd-cvs@sourceware.org
Subject: [binutils-gdb] Stop the linker's --dependency-file option from including temporary lto files.
Date: Wed, 28 Jun 2023 12:50:39 +0000 (GMT)	[thread overview]
Message-ID: <20230628125039.3B9B43858D35@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b25c1a15cbac78e592d7a0c749dec2fcc175ec39

commit b25c1a15cbac78e592d7a0c749dec2fcc175ec39
Author: Nick Clifton <nickc@redhat.com>
Date:   Wed Jun 28 13:49:43 2023 +0100

    Stop the linker's --dependency-file option from including temporary lto files.
    
      PR 30568
      * ldfile.c (ldfile_try_open_bfd): Do not track lto generated temporary files.

Diff:
---
 ld/ChangeLog | 7 +++++++
 ld/ldfile.c  | 4 +++-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index 1467128eb61..084c96dce96 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,10 @@
+2023-06-28  Nikita Popov  <npopov@redhat.com>
+	    Nick Clifton  <nickc@redhat.com>
+
+	PR 30568
+	* ldfile.c (ldfile_try_open_bfd): Do not track lto generated
+	temporary files.
+
 2023-06-21  Nick Clifton  <nickc@redhat.com>
 
 	PR 29072
diff --git a/ld/ldfile.c b/ld/ldfile.c
index 4976367bbf0..c8a6874978b 100644
--- a/ld/ldfile.c
+++ b/ld/ldfile.c
@@ -352,7 +352,9 @@ ldfile_try_open_bfd (const char *attempt,
       return false;
     }
 
-  track_dependency_files (attempt);
+  /* PR 30568: Do not track lto generated temporary object files.  */
+  if (!entry->flags.lto_output)
+    track_dependency_files (attempt);
 
   /* Linker needs to decompress sections.  */
   entry->the_bfd->flags |= BFD_DECOMPRESS;

                 reply	other threads:[~2023-06-28 12:50 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=20230628125039.3B9B43858D35@sourceware.org \
    --to=nickc@sourceware.org \
    --cc=bfd-cvs@sourceware.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).