Commit e9d01715 by Martin Liska Committed by Martin Liska

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
parent 0048539a
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>
* fold-const.c (operand_compare::operand_equal_p): Add comparison
of CONSTRUCTOR_NO_CLEARING.
(operand_compare::hash_operand): Likewise.
......@@ -197,6 +197,9 @@ delete_function_version (cgraph_function_version_info *decl_v)
if (decl_v == NULL)
return;
if (version_info_node == decl_v)
version_info_node = NULL;
if (decl_v->prev != NULL)
decl_v->prev->next = decl_v->next;
......
2019-11-07 Martin Liska <mliska@suse.cz>
PR c++/92354
* g++.target/i386/pr92354.C: New test.
2019-11-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
* gcc.dg/tree-ssa/pr92163.c: Add dg-require-effective-target fopenacc.
......
/* PR c++/92354 */
/* { dg-do compile } */
/* { dg-require-ifunc "" } */
/* { dg-options "--param ggc-min-heapsize=0" } */
__attribute__ ((target ("default"))) void f ();
__attribute__ ((target ("sse"))) void f ();
__attribute__ ((target ("default"))) void f ();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment