(find_basic_blocks): Check for LABEL_REF_NONLOCAL_P in label_value_list.
authorRichard Stallman <rms@gnu.org>
Mon, 26 Oct 1992 05:29:12 +0000 (05:29 +0000)
committerRichard Stallman <rms@gnu.org>
Mon, 26 Oct 1992 05:29:12 +0000 (05:29 +0000)
From-SVN: r2606

gcc/flow.c

index 3e6f58d673c35a059d1b69f3b5802c5b0504a15c..c2f94c96b3263c272d4a2b0ed96f5dda328c99c2 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.  */