OSDN Git Service

* cfgrtl.c (rtl_block_ends_with_call_p): Skip notes at the end.
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Oct 2007 16:58:25 +0000 (16:58 +0000)
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Oct 2007 16:58:25 +0000 (16:58 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128988 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cfgrtl.c

index cc66c03..5d7d7a1 100644 (file)
@@ -1,5 +1,9 @@
 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
        the end of basic block.
 
index 2893c83..cfeca97 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));
 }