https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110827
--- Comment #19 from Michael Duggan <mwd at md5i dot com> --- I submitted a patch. I also recently thought of another potential solution. We could patch the code that outputs the function information for the graph file, changing it to *not* mark the actor function as artificial. That code is in gcc proper, so should have access to the flags you mention.