aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
authorWang Liushuai <wangliushuai@bytedance.com>2021-05-24 10:09:29 +0200
committerMartin Liska <mliska@suse.cz>2021-05-24 10:09:54 +0200
commit0f3cd532fa02d1787960bdd380d0a3f78343f024 (patch)
treeaa4c6b5ea1836a360b960f8ab3a8d31a39680a26 /gcc/lto
parent9d38e096c5e3b1c2233b28d0e6ff8ee81517af56 (diff)
downloadgcc-0f3cd532fa02d1787960bdd380d0a3f78343f024.zip
gcc-0f3cd532fa02d1787960bdd380d0a3f78343f024.tar.gz
gcc-0f3cd532fa02d1787960bdd380d0a3f78343f024.tar.bz2
Do not load the thunk symbols.
gcc/lto/ChangeLog: * lto-dump.c (get_size): Fix the NPD error about the thunk symbol.
Diffstat (limited to 'gcc/lto')
-rw-r--r--gcc/lto/lto-dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/lto/lto-dump.c b/gcc/lto/lto-dump.c
index 8344d3e..3586e20 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;
}