public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Martin Liska <marxin@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-8872] lto: do not load LTO stream for aliases [PR107418]
Date: Thu, 27 Oct 2022 08:33:31 +0000 (GMT)	[thread overview]
Message-ID: <20221027083331.644E1382EA39@sourceware.org> (raw)

https://gcc.gnu.org/g:ca0220d42e075194ca1341c98a0a9a9f3fd1c719

commit r12-8872-gca0220d42e075194ca1341c98a0a9a9f3fd1c719
Author: Martin Liska <mliska@suse.cz>
Date:   Thu Oct 27 10:29:17 2022 +0200

    lto: do not load LTO stream for aliases [PR107418]
    
            PR lto/107418
    
    gcc/lto/ChangeLog:
    
            * lto-dump.cc (lto_main): Do not load LTO stream for aliases.
    
    (cherry picked from commit be6c75547385c69706370f4e792b04295f708a5a)

Diff:
---
 gcc/lto/lto-dump.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/lto/lto-dump.cc b/gcc/lto/lto-dump.cc
index 1fb3fb86fb5..7dd3ac7b96d 100644
--- a/gcc/lto/lto-dump.cc
+++ b/gcc/lto/lto-dump.cc
@@ -344,7 +344,8 @@ lto_main (void)
       /* Dump gimple statement statistics.  */
       cgraph_node *node;
       FOR_EACH_DEFINED_FUNCTION (node)
-	node->get_untransformed_body ();
+	if (!node->alias)
+	  node->get_untransformed_body ();
       if (!GATHER_STATISTICS)
 	warning_at (input_location, 0,
 		    "Not configured with "

                 reply	other threads:[~2022-10-27  8:33 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=20221027083331.644E1382EA39@sourceware.org \
    --to=marxin@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).