]> git.ipfire.org Git - thirdparty/gcc.git/commit
cgraph: Do not warn about caller count mismatches of removed functions
authorMartin Jambor <mjambor@suse.cz>
Thu, 16 Sep 2021 12:04:06 +0000 (14:04 +0200)
committerMartin Jambor <mjambor@suse.cz>
Thu, 16 Sep 2021 15:06:47 +0000 (17:06 +0200)
commit371848a7ed301ee4d6e33842ba41e79412c5d0b0
tree52f74423660dd67c5d061db50d6db4a304a0fda0
parentab08859e37ef822c839bc33ec097091f17ebfe76
cgraph: Do not warn about caller count mismatches of removed functions

To verify other changes in the patch series, I have been searching for
"Invalid sum of caller counts" string in symtab dump but found that
there are false warnings about functions which have their body removed
because they are now unreachable.  Those are of course invalid and so
this patches avoids checking such cgraph_nodes.

gcc/ChangeLog:

2021-08-20  Martin Jambor  <mjambor@suse.cz>

* cgraph.c (cgraph_node::dump): Do not check caller count sums if
the body has been removed.  Remove trailing whitespace.
gcc/cgraph.c