From: Martin Liska Date: Mon, 8 Nov 2021 09:27:47 +0000 (+0100) Subject: Dump static chain for cgraph_node. X-Git-Tag: basepoints/gcc-13~3318 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=409767d774c59ee4c3eefca5015ba00539fddc08;p=thirdparty%2Fgcc.git Dump static chain for cgraph_node. gcc/ChangeLog: * cgraph.c (cgraph_node::dump): Dump static_chain_decl. --- diff --git a/gcc/cgraph.c b/gcc/cgraph.c index de0786537814..8299ee929464 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)