From 1c93f6ce599f93f9845d0490010bca29848c21de Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 8 Feb 2019 08:14:57 +0100 Subject: [PATCH] cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of cfun everywhere. * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of cfun everywhere. From-SVN: r268664 --- gcc/ChangeLog | 5 +++++ gcc/cfganal.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cbb1ebe4a3e..f2652a42259 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-02-08 Jakub Jelinek + + * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of + cfun everywhere. + 2019-02-07 David Malcolm PR tree-optimization/86637 diff --git a/gcc/cfganal.c b/gcc/cfganal.c index ad52bff8962..45ebd1ead60 100644 --- a/gcc/cfganal.c +++ b/gcc/cfganal.c @@ -951,10 +951,10 @@ pre_and_rev_post_order_compute_fn (struct function *fn, bool include_entry_exit) { int pre_order_num = 0; - int rev_post_order_num = n_basic_blocks_for_fn (cfun) - 1; + int rev_post_order_num = n_basic_blocks_for_fn (fn) - 1; /* Allocate stack for back-tracking up CFG. */ - auto_vec stack (n_basic_blocks_for_fn (cfun) + 1); + auto_vec stack (n_basic_blocks_for_fn (fn) + 1); if (include_entry_exit) { @@ -968,7 +968,7 @@ pre_and_rev_post_order_compute_fn (struct function *fn, rev_post_order_num -= NUM_FIXED_BLOCKS; /* Allocate bitmap to track nodes that have been visited. */ - auto_sbitmap visited (last_basic_block_for_fn (cfun)); + auto_sbitmap visited (last_basic_block_for_fn (fn)); /* None of the nodes in the CFG have been visited yet. */ bitmap_clear (visited); -- 2.30.2