summaryrefslogtreecommitdiff
path: root/gcc/bb-reorder.c
diff options
context:
space:
mode:
authorjle <jle@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-02 22:05:06 +0000
committerjle <jle@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-02 22:05:06 +0000
commit6521ac3de51bcf3b37b719ef637e1278933a0c81 (patch)
treefeb06eee1960ffa214372a52839a71d4ed45fb5b /gcc/bb-reorder.c
parent610021b82d5aad27fcbcdee44b2d24ca746db9ed (diff)
downloadgcc-6521ac3de51bcf3b37b719ef637e1278933a0c81.tar.gz
Tue May 2 17:06:53 2000 Jason Eckhardt <jle@cygnus.com>
* bb-reorder.c (remove_scope_notes): Check for both types of scope notes as the end of a basic block before deleting. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33619 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/bb-reorder.c')
-rw-r--r--gcc/bb-reorder.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c
index 3a9a25fcbb6..8ef6bd17e12 100644
--- a/gcc/bb-reorder.c
+++ b/gcc/bb-reorder.c
@@ -1146,10 +1146,11 @@ remove_scope_notes ()
&& (NOTE_LINE_NUMBER (x) == NOTE_INSN_BLOCK_BEG
|| NOTE_LINE_NUMBER (x) == NOTE_INSN_BLOCK_END))
{
- /* Check if the scope end happens to be the end of a bb. */
- if (currbb && x == currbb->end
- && NOTE_LINE_NUMBER (x) == NOTE_INSN_BLOCK_END)
+ /* Check if the scope note happens to be the end of a bb. */
+ if (currbb && x == currbb->end)
currbb->end = PREV_INSN (x);
+ if (currbb && x == currbb->head)
+ abort ();
if (PREV_INSN (x))
{