projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04f42b0
)
(emit_nop): Do not emit a nop if there is a single insn before a label
author
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 26 Jul 1995 12:36:28 +0000
(08:36 -0400)
committer
Richard 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
patch
|
blob
|
history
diff --git
a/gcc/stmt.c
b/gcc/stmt.c
index b3897d5d554609d736ae586a3eb747dd70aafbe3..b60abe1bb5bf44b0cc4ccd4c57b48b1974361b56 100644
(file)
--- 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 ());
}
}