]> gcc.gnu.org Git - gcc.git/commit
ipa: Release body more carefully when removing nodes (PR 107944)
authorMartin Jambor <mjambor@suse.cz>
Thu, 2 Feb 2023 11:22:22 +0000 (12:22 +0100)
committerMartin Jambor <mjambor@suse.cz>
Thu, 2 Feb 2023 11:26:23 +0000 (12:26 +0100)
commite36385be53d51539e1c295a80085115b24fede32
tree885f6d064fa352025dcce23c7aa8b5fc06a7ec9f
parent29c7f19051ee7d3bf1f82eb91c013fd19bd47534
ipa: Release body more carefully when removing nodes (PR 107944)

The code removing function bodies when the last call graph clone of a
node is removed is too aggressive when there are nodes up the
clone_of chain which still need them.  Fixed by expanding the check.

gcc/ChangeLog:

2023-01-18  Martin Jambor  <mjambor@suse.cz>

PR ipa/107944
* cgraph.c (cgraph_node::remove): Check whether nodes up the
lcone_of chain also do not need the body.

(cherry picked from commit db959e250077ae6b4fc08f53fb322719582c5de6)
gcc/cgraph.c
This page took 0.053231 seconds and 5 git commands to generate.