Commit eb6f82f7 by Jason Eckhardt Committed by Jason Eckhardt

bb-reorder.c (remove_scope_notes): Check for both types of scope notes as the…

bb-reorder.c (remove_scope_notes): Check for both types of scope notes as the end of a basic block before deleting.

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.

From-SVN: r33619
parent f8855270
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.
2000-05-02 Mumit Khan <khan@xraylith.wisc.edu> 2000-05-02 Mumit Khan <khan@xraylith.wisc.edu>
* final.c (final_start_function): Fix spelling of "necessary". * final.c (final_start_function): Fix spelling of "necessary".
......
...@@ -1146,10 +1146,11 @@ remove_scope_notes () ...@@ -1146,10 +1146,11 @@ remove_scope_notes ()
&& (NOTE_LINE_NUMBER (x) == NOTE_INSN_BLOCK_BEG && (NOTE_LINE_NUMBER (x) == NOTE_INSN_BLOCK_BEG
|| NOTE_LINE_NUMBER (x) == NOTE_INSN_BLOCK_END)) || NOTE_LINE_NUMBER (x) == NOTE_INSN_BLOCK_END))
{ {
/* Check if the scope end happens to be the end of a bb. */ /* Check if the scope note happens to be the end of a bb. */
if (currbb && x == currbb->end if (currbb && x == currbb->end)
&& NOTE_LINE_NUMBER (x) == NOTE_INSN_BLOCK_END)
currbb->end = PREV_INSN (x); currbb->end = PREV_INSN (x);
if (currbb && x == currbb->head)
abort ();
if (PREV_INSN (x)) if (PREV_INSN (x))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment