Move RTL checking code into make_insn_raw

From-SVN: r32010
This commit is contained in:
Nick Clifton 2000-02-16 17:56:21 +00:00 committed by Nick Clifton
parent 4746ee266f
commit 4798472070
2 changed files with 17 additions and 12 deletions

View File

@ -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.

View File

@ -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;
}