aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgrtl.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2007-10-03 16:58:25 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2007-10-03 16:58:25 +0000
commit92ddef6949e6bc309220c1f09e7d0b0da13699c7 (patch)
tree32499abe264ce170d9c1df99e03b6e5a8c7387be /gcc/cfgrtl.c
parent02a4823b8650a920d78f6b1bac89587b8b1f5374 (diff)
downloadgcc-92ddef6949e6bc309220c1f09e7d0b0da13699c7.zip
gcc-92ddef6949e6bc309220c1f09e7d0b0da13699c7.tar.gz
gcc-92ddef6949e6bc309220c1f09e7d0b0da13699c7.tar.bz2
* cfgrtl.c (rtl_block_ends_with_call_p): Skip notes at the end.
From-SVN: r128988
Diffstat (limited to 'gcc/cfgrtl.c')
-rw-r--r--gcc/cfgrtl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c
index 2893c83..cfeca97 100644
--- a/gcc/cfgrtl.c
+++ b/gcc/cfgrtl.c
@@ -2702,7 +2702,8 @@ rtl_block_ends_with_call_p (basic_block bb)
while (!CALL_P (insn)
&& insn != BB_HEAD (bb)
- && keep_with_call_p (insn))
+ && (keep_with_call_p (insn)
+ || NOTE_P (insn)))
insn = PREV_INSN (insn);
return (CALL_P (insn));
}