From 355eb60b6672220642fae853021599afaa87dfd6 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Mon, 8 Nov 2021 12:57:08 +0100 Subject: [PATCH] Fix static chain dump. gcc/ChangeLog: * cgraph.c (cgraph_node::dump): Dump it from decl. --- gcc/cgraph.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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"); -- 2.47.3