Commit 47984720 by Nick Clifton Committed by Nick Clifton

Move RTL checking code into make_insn_raw

From-SVN: r32010
parent 4746ee26
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> 2000-02-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* version.c: Include gansidecl.h and version.h. * version.c: Include gansidecl.h and version.h.
......
...@@ -2338,6 +2338,18 @@ make_insn_raw (pattern) ...@@ -2338,6 +2338,18 @@ make_insn_raw (pattern)
LOG_LINKS (insn) = NULL; LOG_LINKS (insn) = NULL;
REG_NOTES (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; return insn;
} }
...@@ -2997,18 +3009,6 @@ emit_insn (pattern) ...@@ -2997,18 +3009,6 @@ emit_insn (pattern)
add_insn (insn); 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; return insn;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment