aboutsummaryrefslogtreecommitdiff
path: root/gcc/emit-rtl.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@cygnus.com>2000-01-14 20:51:04 +0000
committerNick Clifton <nickc@gcc.gnu.org>2000-01-14 20:51:04 +0000
commit06be917325903b12e7d679c65c9213b7880f3f9f (patch)
tree5ab565af0b5e42f047abbefe081697352492687d /gcc/emit-rtl.c
parent711d877c9e4f9b3250bc50e54c672b40840d574a (diff)
downloadgcc-06be917325903b12e7d679c65c9213b7880f3f9f.zip
gcc-06be917325903b12e7d679c65c9213b7880f3f9f.tar.gz
gcc-06be917325903b12e7d679c65c9213b7880f3f9f.tar.bz2
If RTL checking is enabled, make sure that emit_insn is not used to emit a
jump insn. From-SVN: r31420
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r--gcc/emit-rtl.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index 304e6d4..3ade3c6 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -2948,6 +2948,17 @@ emit_insn (pattern)
add_insn (insn);
}
+#ifdef ENABLE_RTL_CHECKING
+ if (insn
+ && (returnjump_p (insn)
+ || (GET_CODE (insn) == SET
+ && SET_DEST (insn) == pc_rtx)))
+ {
+ warning ("ICE: emit_insn used where emit_jump_insn needed:\n");
+ debug_rtx (insn);
+ }
+#endif
+
return insn;
}