On 11/8/21 12:17, Jan Hubicka wrote:
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)

static_chain_decl is not a flag though, it's a tree.
Ah yes, you want to just test if (DECL_STATI_CHAIN (decl))
and then print "static_chain".
I was not reading carefuly enough. Thanks!

Oh, ok. One can read it from decl.

Pushed with the modification as g:409767d774c59ee4c3eefca5015ba00539fddc08.

Cheers,
Martin

Honza

--
Eric Botcazou



Reply via email to