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-1011] Do not load the thunk symbols.
Date: Mon, 24 May 2021 08:11:07 +0000 (GMT)	[thread overview]
Message-ID: <20210524081107.A2434386FC1E@sourceware.org> (raw)

https://gcc.gnu.org/g:0f3cd532fa02d1787960bdd380d0a3f78343f024

commit r12-1011-g0f3cd532fa02d1787960bdd380d0a3f78343f024
Author: Wang Liushuai <wangliushuai@bytedance.com>
Date:   Mon May 24 10:09:29 2021 +0200

    Do not load the thunk symbols.
    
    gcc/lto/ChangeLog:
    
            * lto-dump.c (get_size): Fix the NPD error about the thunk symbol.

Diff:
---
 gcc/lto/lto-dump.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/lto/lto-dump.c b/gcc/lto/lto-dump.c
index 8344d3e1737..3586e208f9a 100644
--- a/gcc/lto/lto-dump.c
+++ b/gcc/lto/lto-dump.c
@@ -122,7 +122,7 @@ public:
     cgraph_node *cnode = dyn_cast<cgraph_node *> (node);
     gcc_assert (cnode);
 
-    return (cnode->definition && !cnode->alias)
+    return (cnode->definition && !cnode->thunk && !cnode->alias)
      ? n_basic_blocks_for_fn (DECL_STRUCT_FUNCTION (cnode->decl))
      : 0;
   }


                 reply	other threads:[~2021-05-24  8:11 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=20210524081107.A2434386FC1E@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).