aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2003-04-03 22:28:39 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2003-04-03 20:28:39 +0000
commitbcc53e2a94852391230761e15c044cd48797d4d1 (patch)
treedf8edacc89428dcbb3f3ecfcecf542e83f845c05
parent55a2af0c4219527cf5e46f1efbbab6f80cd2cb84 (diff)
downloadgcc-bcc53e2a94852391230761e15c044cd48797d4d1.zip
gcc-bcc53e2a94852391230761e15c044cd48797d4d1.tar.gz
gcc-bcc53e2a94852391230761e15c044cd48797d4d1.tar.bz2
* cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
From-SVN: r65214
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/cfgrtl.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4b6dec2..a02b55c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+Thu Apr 3 22:27:40 CEST 2003 Jan Hubicka <jh@suse.cz>
+
+ * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
+
2003-04-03 Eric Botcazou <ebotcazou@libertysurf.fr>
PR optimization/10157
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c
index c7194b5..185676b 100644
--- a/gcc/cfgrtl.c
+++ b/gcc/cfgrtl.c
@@ -462,7 +462,8 @@ update_bb_for_insn (bb)
for (insn = bb->head; ; insn = NEXT_INSN (insn))
{
- set_block_for_insn (insn, bb);
+ if (GET_CODE (insn) != BARRIER)
+ set_block_for_insn (insn, bb);
if (insn == bb->end)
break;
}