]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* cfgrtl.c (rtl_block_ends_with_call_p): Skip notes at the end.
authorAlexandre Oliva <aoliva@redhat.com>
Wed, 3 Oct 2007 16:58:25 +0000 (16:58 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Wed, 3 Oct 2007 16:58:25 +0000 (16:58 +0000)
From-SVN: r128988

gcc/ChangeLog
gcc/cfgrtl.c

index cc66c032b944d2c3784404839c6a6a239270f6c4..5d7d7a17313a00f701eb5b017bcd173649267ba8 100644 (file)
@@ -1,3 +1,7 @@
+2007-10-03  Alexandre Oliva  <aoliva@redhat.com>
+
+       * cfgrtl.c (rtl_block_ends_with_call_p): Skip notes at the end.
+
 2007-10-03  Alexandre Oliva  <aoliva@redhat.com>
 
        * gcse.c (hash_scan_set): Insert set in insn before note at
index 2893c837051424fb93c7d6312d2855a0367bae8e..cfeca97eaee538bc6c480e237849e72f70e78686 100644 (file)
@@ -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));
 }