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
+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
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.
--- /dev/null
+/* 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 ();