diff options
author | daney <daney@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-17 19:27:35 +0000 |
---|---|---|
committer | daney <daney@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-17 19:27:35 +0000 |
commit | 326fb3fd5d032dbf896558a1718ca1a0f6a23523 (patch) | |
tree | 0ee9c88e716310a821d02281dcf3c8aa315aa9b9 /gcc/jump.c | |
parent | 3461df79786575e42f992aac9c711c464b7ca1aa (diff) | |
download | gcc-326fb3fd5d032dbf896558a1718ca1a0f6a23523.tar.gz |
2009-06-17 David Daney <ddaney@caviumnetworks.com>
* jump.c (cleanup_barriers): Handle case of no insns before a
barrier.
2009-06-17 David Daney <ddaney@caviumnetworks.com>
* gcc.dg/builtin-unreachable-3.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148624 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/jump.c')
-rw-r--r-- | gcc/jump.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/jump.c b/gcc/jump.c index 350de16f07c..7fe34f18661 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -113,6 +113,8 @@ cleanup_barriers (void) if (BARRIER_P (insn)) { prev = prev_nonnote_insn (insn); + if (!prev) + continue; if (BARRIER_P (prev)) delete_insn (insn); else if (prev != PREV_INSN (insn)) |