From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id A2434386FC1E; Mon, 24 May 2021 08:11:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A2434386FC1E MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-1011] Do not load the thunk symbols. X-Act-Checkin: gcc X-Git-Author: Wang Liushuai X-Git-Refname: refs/heads/master X-Git-Oldrev: 9d38e096c5e3b1c2233b28d0e6ff8ee81517af56 X-Git-Newrev: 0f3cd532fa02d1787960bdd380d0a3f78343f024 Message-Id: <20210524081107.A2434386FC1E@sourceware.org> Date: Mon, 24 May 2021 08:11:07 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 May 2021 08:11:07 -0000 https://gcc.gnu.org/g:0f3cd532fa02d1787960bdd380d0a3f78343f024 commit r12-1011-g0f3cd532fa02d1787960bdd380d0a3f78343f024 Author: Wang Liushuai 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 (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; }