From 1e89ab6ce59bb59a4053291df339dfe80a8bd589 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Tue, 26 Nov 2019 12:03:58 +0000 Subject: [PATCH] re PR target/92669 (ICE in pre_and_rev_post_order_compute_fn at gcc/cfganal.c:1034 since r278666) 2019-11-26 Richard Biener PR middle-end/92669 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with NULL pre_order. From-SVN: r278723 --- gcc/ChangeLog | 6 ++++++ gcc/cfganal.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a3e757502bd..0bfe9f2bc96 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-11-26 Richard Biener + + PR middle-end/92669 + * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with + NULL pre_order. + 2019-11-26 Robin Dapp * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx. diff --git a/gcc/cfganal.c b/gcc/cfganal.c index 1a5c720984e..1d8393d4fd9 100644 --- a/gcc/cfganal.c +++ b/gcc/cfganal.c @@ -1030,6 +1030,8 @@ pre_and_rev_post_order_compute_fn (struct function *fn, } /* Clear the temporarily allocated flag. */ + if (!rev_post_order) + rev_post_order = pre_order; for (int i = 0; i < pre_order_num; ++i) BASIC_BLOCK_FOR_FN (fn, rev_post_order[i])->flags &= ~visited; -- 2.30.2