aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-07-26 08:36:28 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-07-26 08:36:28 -0400
commitdfda5a87b5432c74b6f5dde252a0d07c81314332 (patch)
tree566599dd911ad222b6c66f8a0a38d2528b937567 /gcc
parent04f42b07d52c170225f91ed5f0fdb10b4ed602ce (diff)
downloadgcc-dfda5a87b5432c74b6f5dde252a0d07c81314332.zip
gcc-dfda5a87b5432c74b6f5dde252a0d07c81314332.tar.gz
gcc-dfda5a87b5432c74b6f5dde252a0d07c81314332.tar.bz2
(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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/stmt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c
index b3897d5..b60abe1 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 ());
}
}