diff options
author | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-06 18:05:27 +0000 |
---|---|---|
committer | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-06 18:05:27 +0000 |
commit | 5c67c6c7ee2c687ef75226a4248e0bad01495d6d (patch) | |
tree | 17c2e2babfaf3e6e9a7dc4233870ebcfdf9d99a1 /gcc/cfgrtl.c | |
parent | 98337c89d7f4ae830c1f51a3114c63107aad4f92 (diff) | |
download | gcc-5c67c6c7ee2c687ef75226a4248e0bad01495d6d.tar.gz |
* cfgrtl.c (rtl_delete_block): A basic block may be followed by
more than one barrier, in which case we should delete them all.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92996 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgrtl.c')
-rw-r--r-- | gcc/cfgrtl.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index 90bd95f845c..fa0af4ba654 100644 --- a/gcc/cfgrtl.c +++ b/gcc/cfgrtl.c @@ -1,6 +1,6 @@ /* Control flow graph manipulation code for GNU compiler. Copyright (C) 1987, 1988, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. + 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This file is part of GCC. @@ -379,10 +379,13 @@ rtl_delete_block (basic_block b) if (tablejump_p (end, NULL, &tmp)) end = tmp; - /* Include any barrier that may follow the basic block. */ + /* Include any barriers that may follow the basic block. */ tmp = next_nonnote_insn (end); - if (tmp && BARRIER_P (tmp)) - end = tmp; + while (tmp && BARRIER_P (tmp)) + { + end = tmp; + tmp = next_nonnote_insn (end); + } /* Selectively delete the entire chain. */ BB_HEAD (b) = NULL; |