From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 631CD385843B; Mon, 8 Nov 2021 09:28:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 631CD385843B Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/marxin/heads/PR-cgraph-dump-add-static-chain)] Dump static chain for cgraph_node. X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/users/marxin/heads/PR-cgraph-dump-add-static-chain X-Git-Oldrev: 51152076338bc60b8bda8f061be2db97ea5b78de X-Git-Newrev: 7436c63d2891972bcdd3d247908be28dc83004a1 Message-Id: <20211108092822.631CD385843B@sourceware.org> Date: Mon, 8 Nov 2021 09:28:22 +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, 08 Nov 2021 09:28:22 -0000 https://gcc.gnu.org/g:7436c63d2891972bcdd3d247908be28dc83004a1 commit 7436c63d2891972bcdd3d247908be28dc83004a1 Author: Martin Liska Date: Mon Nov 8 10:27:47 2021 +0100 Dump static chain for cgraph_node. gcc/ChangeLog: * cgraph.c (cgraph_node::dump): Dump static_chain_decl. Diff: --- gcc/cgraph.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/cgraph.c b/gcc/cgraph.c index de078653781..8299ee92946 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -2203,6 +2203,10 @@ cgraph_node::dump (FILE *f) fprintf (f, " %soperator_delete", DECL_IS_REPLACEABLE_OPERATOR (decl) ? "replaceable_" : ""); + function *fn = DECL_STRUCT_FUNCTION (decl); + if (fn != NULL && fn->static_chain_decl) + fprintf (f, " static_chain_decl"); + fprintf (f, "\n"); if (thunk)