From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1075) id 679F73858C27; Sat, 10 Oct 2020 19:23:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 679F73858C27 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Jan Hubicka To: gcc-cvs@gcc.gnu.org Subject: [gcc r11-3773] Fix ipa-modref ICE with not allocated summaries. X-Act-Checkin: gcc X-Git-Author: Jan Hubicka X-Git-Refname: refs/heads/master X-Git-Oldrev: c8fd2be174a15ff154a3102decb0e643f67cad02 X-Git-Newrev: 6a6c85f4e11fe8160dcb3942fc00664da4a98717 Message-Id: <20201010192327.679F73858C27@sourceware.org> Date: Sat, 10 Oct 2020 19:23:27 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Oct 2020 19:23:27 -0000 https://gcc.gnu.org/g:6a6c85f4e11fe8160dcb3942fc00664da4a98717 commit r11-3773-g6a6c85f4e11fe8160dcb3942fc00664da4a98717 Author: Jan Hubicka 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 *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)