aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNick Clifton <nickc@cygnus.com>2000-02-16 17:56:21 +0000
committerNick Clifton <nickc@gcc.gnu.org>2000-02-16 17:56:21 +0000
commit47984720709d4cf4fb4c9d129433c7558fcbeeb5 (patch)
tree4f13d22c0465dd7c020cdb117973f3f54dc781ee /gcc
parent4746ee266f25b302b0b2976096106b00da13aeee (diff)
downloadgcc-47984720709d4cf4fb4c9d129433c7558fcbeeb5.zip
gcc-47984720709d4cf4fb4c9d129433c7558fcbeeb5.tar.gz
gcc-47984720709d4cf4fb4c9d129433c7558fcbeeb5.tar.bz2
Move RTL checking code into make_insn_raw
From-SVN: r32010
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/emit-rtl.c24
2 files changed, 17 insertions, 12 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4ee61fb..827b462 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2000-02-16 Nick Clifton <nickc@cygnus.com>
+
+ * emit-rtl.c (emit_insn): Move RTL check into make_insn_raw.
+ (make_insn_raw): Move RTL check here.
+
2000-02-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* version.c: Include gansidecl.h and version.h.
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index 26bfc44..17f8f09 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -2338,6 +2338,18 @@ make_insn_raw (pattern)
LOG_LINKS (insn) = NULL;
REG_NOTES (insn) = NULL;
+#ifdef ENABLE_RTL_CHECKING
+ if (insn
+ && GET_RTX_CLASS (GET_CODE (insn)) == 'i'
+ && (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;
}
@@ -2997,18 +3009,6 @@ emit_insn (pattern)
add_insn (insn);
}
-#ifdef ENABLE_RTL_CHECKING
- if (insn
- && GET_RTX_CLASS (GET_CODE (insn)) == 'i'
- && (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;
}