From: Martin Liska Date: Mon, 8 Nov 2021 11:57:08 +0000 (+0100) Subject: Fix static chain dump. X-Git-Tag: basepoints/gcc-13~3316 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=355eb60b6672220642fae853021599afaa87dfd6;p=thirdparty%2Fgcc.git Fix static chain dump. gcc/ChangeLog: * cgraph.c (cgraph_node::dump): Dump it from decl. --- diff --git a/gcc/cgraph.c b/gcc/cgraph.c index 8299ee929464..c67d300e7a4a 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -2203,9 +2203,8 @@ 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"); + if (DECL_STATIC_CHAIN (decl)) + fprintf (f, " static_chain"); fprintf (f, "\n");