[gcc r11-3773] Fix ipa-modref ICE with not allocated summaries.

Jan Hubicka hubicka@gcc.gnu.org
Sat Oct 10 19:23:27 GMT 2020


https://gcc.gnu.org/g:6a6c85f4e11fe8160dcb3942fc00664da4a98717

commit r11-3773-g6a6c85f4e11fe8160dcb3942fc00664da4a98717
Author: Jan Hubicka <jh@suse.cz>
Date:   Sat Oct 10 21:22:52 2020 +0200

    Fix ipa-modref ICE with not allocated summaries.
    
            * ipa-modref.c (modref_transform): Check that summaries are allocated.

Diff:
---
 gcc/ipa-modref.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/ipa-modref.c b/gcc/ipa-modref.c
index 9392d73a941..2b561fe3179 100644
--- a/gcc/ipa-modref.c
+++ b/gcc/ipa-modref.c
@@ -1343,7 +1343,7 @@ remap_arguments (vec <int> *map, modref_records *tt)
 static unsigned int
 modref_transform (struct cgraph_node *node)
 {
-  if (!node->clone.param_adjustments)
+  if (!node->clone.param_adjustments || !summaries)
     return 0;
   modref_summary *r = summaries->get (node);
   if (!r)


More information about the Gcc-cvs mailing list