aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2007-10-02 01:39:50 +0000
committerAlexandre Oliva <aoliva@redhat.com>2007-10-02 01:39:50 +0000
commit12fe57a830d81a230bf5bfb8b96011f3760666fa (patch)
tree68f95b1769351742aa10cc96cc484eb3f5a5816a /gcc
parentf5188ef44e3cb1537bbacdebc9a300db328a8ae1 (diff)
* cfgrtl.c (rtl_block_ends_with_call_p): Skip notes at the end.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/var-tracking-assignments-branch@128943 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog.vta4
-rw-r--r--gcc/cfgrtl.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog.vta b/gcc/ChangeLog.vta
index 8a226424856..a92851bcd87 100644
--- a/gcc/ChangeLog.vta
+++ b/gcc/ChangeLog.vta
@@ -1,5 +1,9 @@
2007-10-01 Alexandre Oliva <aoliva@redhat.com>
+ * cfgrtl.c (rtl_block_ends_with_call_p): Skip notes at the end.
+
+2007-10-01 Alexandre Oliva <aoliva@redhat.com>
+
* tree-inline.c (self_inlining_addr_expr): Delete.
(setup_one_parameter): Drop fn argument. Adjust callers.
Don't short-circuit optimization of declarations.
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c
index 2893c837051..cfeca97eaee 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));
}