From ffe8baa996486fa0313aa804a064a58b0b161f07 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Fri, 9 Oct 2020 11:29:58 +0200 Subject: [PATCH] IPA modref: fix miscompilation in clone when IPA modref is used gcc/ChangeLog: PR ipa/97292 PR ipa/97335 * ipa-modref-tree.h (copy_from): Drop summary in a clone. --- gcc/ipa-modref-tree.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/ipa-modref-tree.h b/gcc/ipa-modref-tree.h index b37280d18c7..8d7f2864793 100644 --- a/gcc/ipa-modref-tree.h +++ b/gcc/ipa-modref-tree.h @@ -496,7 +496,8 @@ struct GTY((user)) modref_tree /* Copy OTHER to THIS. */ void copy_from (modref_tree *other) { - merge (other, NULL); + auto_vec parm_map; + merge (other, &parm_map); } /* Search BASE in tree; return NULL if failed. */ -- 2.30.2