(emit_nop): Do not emit a nop if there is a single insn before a label
authorRichard Kenner <kenner@gcc.gnu.org>
Wed, 26 Jul 1995 12:36:28 +0000 (08:36 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Wed, 26 Jul 1995 12:36:28 +0000 (08:36 -0400)
or at the start of a function.

From-SVN: r10162

gcc/stmt.c

index b3897d5d554609d736ae586a3eb747dd70aafbe3..b60abe1bb5bf44b0cc4ccd4c57b48b1974361b56 100644 (file)
@@ -553,7 +553,8 @@ emit_nop ()
       last_insn = get_last_insn ();
       if (!optimize
          && (GET_CODE (last_insn) == CODE_LABEL
-             || prev_real_insn (last_insn) == 0))
+             || (GET_CODE (last_insn) == NOTE
+                 && prev_real_insn (last_insn) == 0)))
        emit_insn (gen_nop ());
     }
 }