OSDN Git Service

(find_basic_blocks): Also look for REG_LABEL notes on first
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Feb 1994 23:52:46 +0000 (23:52 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Feb 1994 23:52:46 +0000 (23:52 +0000)
instruction of each basic block.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6500 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/flow.c

index 44eafc0..b578f90 100644 (file)
@@ -468,13 +468,16 @@ find_basic_blocks (f, nonlocal_label_list)
        {
          basic_block_end[i] = insn;
          basic_block_loop_depth[i] = depth;
+       }
 
+      if (GET_RTX_CLASS (code) == 'i')
+       {
          /* Make a list of all labels referred to other than by jumps.  */
          for (note = REG_NOTES (insn); note; note = XEXP (note, 1))
            if (REG_NOTE_KIND (note) == REG_LABEL)
              label_value_list = gen_rtx (EXPR_LIST, VOIDmode, XEXP (note, 0),
                                          label_value_list);
-         }
+       }
 
       BLOCK_NUM (insn) = i;