aboutsummaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2012-11-05 15:47:18 +0000
committerDehao Chen <dehao@gcc.gnu.org>2012-11-05 15:47:18 +0000
commit48866799f1b8bc4244a8842507ad657a34ffca67 (patch)
treeadbe713a9bfd92b231498d164149781d3f2798f1 /gcc/final.c
parentd327457f172ab91732d0789bf925c7510f5e1015 (diff)
downloadgcc-48866799f1b8bc4244a8842507ad657a34ffca67.zip
gcc-48866799f1b8bc4244a8842507ad657a34ffca67.tar.gz
gcc-48866799f1b8bc4244a8842507ad657a34ffca67.tar.bz2
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
Diffstat (limited to 'gcc/final.c')
-rw-r--r--gcc/final.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/final.c b/gcc/final.c
index 81a679d..f69963d 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -1616,7 +1616,12 @@ reemit_insn_block_notes (void)
insn_scope (XVECEXP (body, 0, i)));
}
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)
{