public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1011] Do not load the thunk symbols.
@ 2021-05-24  8:11 Martin Liska
  0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2021-05-24  8:11 UTC (permalink / raw)
  To: gcc-cvs

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;
   }


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

only message in thread, other threads:[~2021-05-24  8:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-24  8:11 [gcc r12-1011] Do not load the thunk symbols Martin Liska

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