aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfganal.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2019-11-26 12:03:58 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2019-11-26 12:03:58 +0000
commit1e89ab6ce59bb59a4053291df339dfe80a8bd589 (patch)
tree62e3c7238381c8696145158e40c4a3b0ca973b7b /gcc/cfganal.c
parent4abc46b51af5751d657764d0c44b8a4aeed06302 (diff)
downloadgcc-1e89ab6ce59bb59a4053291df339dfe80a8bd589.zip
gcc-1e89ab6ce59bb59a4053291df339dfe80a8bd589.tar.gz
gcc-1e89ab6ce59bb59a4053291df339dfe80a8bd589.tar.bz2
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 <rguenther@suse.de> PR middle-end/92669 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with NULL pre_order. From-SVN: r278723
Diffstat (limited to 'gcc/cfganal.c')
-rw-r--r--gcc/cfganal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cfganal.c b/gcc/cfganal.c
index 1a5c720..1d8393d 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;