Clear version_info_node in delete_function_version.
authorMartin Liska <mliska@suse.cz>
Thu, 7 Nov 2019 09:44:21 +0000 (10:44 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 7 Nov 2019 09:44:21 +0000 (09:44 +0000)
commite9d01715bd7e033eacfbadbfab5f1f206221305c
treee04ddcb405fc2db0122fff40f8eab3da24a3c94f
parent0048539a2a48b6c10bbb0ba0607f57cd16c935aa
Clear version_info_node in delete_function_version.

2019-11-07  Martin Liska  <mliska@suse.cz>

PR c++/92354
* cgraph.c (delete_function_version): Clear global
variable version_info_node if equal to deleted
function.
2019-11-07  Martin Liska  <mliska@suse.cz>

PR c++/92354
* g++.target/i386/pr92354.C: New test.

From-SVN: r277913
gcc/ChangeLog
gcc/cgraph.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.target/i386/pr92354.C [new file with mode: 0644]