From 1868b439596f4fab73f606bcb00c453a53f30a91 Mon Sep 17 00:00:00 2001 From: Geoff Keating Date: Tue, 1 Aug 2000 01:27:45 +0000 Subject: [PATCH] flow.c (clear_log_links): Nuke global_live_at_start and global_live_at_end data... * flow.c (clear_log_links): Nuke global_live_at_start and global_live_at_end data, since if the log_links stuff is invalid so is global_live_at_*. From-SVN: r35396 --- gcc/ChangeLog | 6 ++++++ gcc/flow.c | 17 ++++++++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f69814f5c03..d3189089bdd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2000-07-31 Geoff Keating + + * flow.c (clear_log_links): Nuke global_live_at_start and + global_live_at_end data, since if the log_links stuff is invalid + so is global_live_at_*. + 2000-07-31 Richard Henderson * tm.texi (Addressing Modes): Clarify PRE/POST_MODIFY descriptions. diff --git a/gcc/flow.c b/gcc/flow.c index 1bd7fbc7e3e..f760019f98a 100644 --- a/gcc/flow.c +++ b/gcc/flow.c @@ -7760,16 +7760,31 @@ flow_loop_outside_edge_p (loop, e) } -/* Clear LOG_LINKS fields of insns in a chain. */ +/* Clear LOG_LINKS fields of insns in a chain. + Also clear the global_live_at_{start,end} fields of the basic block + structures. */ void clear_log_links (insns) rtx insns; { rtx i; + int b; + for (i = insns; i; i = NEXT_INSN (i)) if (GET_RTX_CLASS (GET_CODE (i)) == 'i') LOG_LINKS (i) = 0; + + for (b = 0; b < n_basic_blocks; b++) + { + basic_block bb = BASIC_BLOCK (i); + + bb->global_live_at_start = NULL; + bb->global_live_at_end = NULL; + } + + ENTRY_BLOCK_PTR->global_live_at_end = NULL; + EXIT_BLOCK_PTR->global_live_at_start = NULL; } /* Given a register bitmap, turn on the bits in a HARD_REG_SET that -- 2.30.2