flow.c (split_edge): Do not call set_block_for_insn if we do not have a basic_block_f...
authorJeffrey A Law <law@cygnus.com>
Fri, 14 Jan 2000 11:21:22 +0000 (11:21 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 14 Jan 2000 11:21:22 +0000 (04:21 -0700)
        * flow.c (split_edge): Do not call set_block_for_insn if we
        do not have a basic_block_for_insn structure.

From-SVN: r31410

gcc/ChangeLog
gcc/flow.c

index c52c015d94048202c4128e38465a568710b19268..dc1cb6c419825cb9a04f499ff3b9b56214a0b710 100644 (file)
@@ -1,5 +1,8 @@
 Fri Jan 14 00:28:06 2000  Jeffrey A Law  (law@cygnus.com)
 
+       * flow.c (split_edge): Do not call set_block_for_insn if we
+       do not have a basic_block_for_insn structure.
+
        * fr30.h (TRAMPOLINE_TEMPLATE): Use nops to ensure the static chain
        and destination functions are 32bit aligned within the trampoline.
        (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Corresponding changes.
index 93677cfe341b1c9656a50f7574c210dc28b722f3..33a5c1efba92f8cde43fd5c38c8c1f295745e7e5 100644 (file)
@@ -1387,7 +1387,8 @@ split_edge (edge_in)
          pos = emit_jump_insn_after (gen_jump (old_succ->head),
                                      jump_block->end);
          jump_block->end = pos;
-         set_block_for_insn (pos, jump_block);
+         if (basic_block_for_insn)
+           set_block_for_insn (pos, jump_block);
          emit_barrier_after (pos);
 
          /* ... let jump know that label is in use, ...  */