OSDN Git Service

(find_basic_blocks): Check for LABEL_REF_NONLOCAL_P in label_value_list.
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Oct 1992 05:29:12 +0000 (05:29 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Oct 1992 05:29:12 +0000 (05:29 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2606 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/flow.c

index 3e6f58d..c2f94c9 100644 (file)
@@ -476,11 +476,13 @@ find_basic_blocks (f, nonlocal_label_list)
       abort ();
   }
 
-  /* Don't delete the labels that are referenced by non-jump instructions.  */
+  /* Don't delete the labels (in this function)
+     that are referenced by non-jump instructions.  */
   {
     register rtx x;
     for (x = label_value_list; x; x = XEXP (x, 1))
-      block_live[BLOCK_NUM (XEXP (x, 0))] = 1;
+      if (! LABEL_REF_NONLOCAL_P (x))
+       block_live[BLOCK_NUM (XEXP (x, 0))] = 1;
   }
 
   /* Record which basic blocks control can drop in to.  */