[Bug ipa/107944] [11/12/13 Regression] ICE in cgraph_node::get_untransformed_body since r13-48-g27ee75dbe81bb7
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 2 11:28:57 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107944
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Martin Jambor
<jamborm@gcc.gnu.org>:
https://gcc.gnu.org/g:e36385be53d51539e1c295a80085115b24fede32
commit r11-10496-ge36385be53d51539e1c295a80085115b24fede32
Author: Martin Jambor <mjambor@suse.cz>
Date: Thu Feb 2 12:22:22 2023 +0100
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)
More information about the Gcc-bugs
mailing list