diff options
author | Martin Jambor <mjambor@suse.cz> | 2023-01-18 15:29:54 +0100 |
---|---|---|
committer | Martin Jambor <mjambor@suse.cz> | 2023-01-18 15:43:30 +0100 |
commit | db959e250077ae6b4fc08f53fb322719582c5de6 (patch) | |
tree | aedd0af0867c8c989cdf2f7df312e27d00305599 /gcc/selftest.h | |
parent | d4abe5c456a3023f61c3e053255b7dd72ca0d7ec (diff) | |
download | gcc-db959e250077ae6b4fc08f53fb322719582c5de6.zip gcc-db959e250077ae6b4fc08f53fb322719582c5de6.tar.gz gcc-db959e250077ae6b4fc08f53fb322719582c5de6.tar.bz2 |
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.cc (cgraph_node::remove): Check whether nodes up the
lcone_of chain also do not need the body.
Diffstat (limited to 'gcc/selftest.h')
0 files changed, 0 insertions, 0 deletions