From: Richard Kenner Date: Wed, 26 Jul 1995 12:36:28 +0000 (-0400) Subject: (emit_nop): Do not emit a nop if there is a single insn before a label X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dfda5a87b5432c74b6f5dde252a0d07c81314332;p=gcc.git (emit_nop): Do not emit a nop if there is a single insn before a label or at the start of a function. From-SVN: r10162 --- diff --git a/gcc/stmt.c b/gcc/stmt.c index b3897d5d554..b60abe1bb5b 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -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 ()); } }