Commit 48866799 by Dehao Chen Committed by Dehao Chen

final.c (reemit_insn_block_notes): Do not change scope if insn location is UNKNOWN_LOCATION.

2012-11-05  Dehao Chen  <dehao@google.com>

	* final.c (reemit_insn_block_notes): Do not change scope if insn
	location is UNKNOWN_LOCATION.

From-SVN: r193169
parent d327457f
2012-11-05 Dehao Chen <dehao@google.com>
* final.c (reemit_insn_block_notes): Do not change scope if insn
location is UNKNOWN_LOCATION.
2012-11-05 Joern Rennecke <joern.rennecke@embecosm.com> 2012-11-05 Joern Rennecke <joern.rennecke@embecosm.com>
* doc/md.texi (Defining Attributes): Document that we are defining * doc/md.texi (Defining Attributes): Document that we are defining
...@@ -1616,7 +1616,12 @@ reemit_insn_block_notes (void) ...@@ -1616,7 +1616,12 @@ reemit_insn_block_notes (void)
insn_scope (XVECEXP (body, 0, i))); insn_scope (XVECEXP (body, 0, i)));
} }
if (! this_block) if (! this_block)
this_block = DECL_INITIAL (cfun->decl); {
if (INSN_LOCATION (insn) == UNKNOWN_LOCATION)
continue;
else
this_block = DECL_INITIAL (cfun->decl);
}
if (this_block != cur_block) if (this_block != cur_block)
{ {
......
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