This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Use of INSN_CODE
- From: "Pranav Bhandarkar" <pranav dot bhandarkar at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 1 Feb 2007 15:09:13 +0530
- Subject: Use of INSN_CODE
Hi All,
I am using recog_memoized in the machine dependent reorg pass.
However, It is causing an ICE because unwittingly a CODE_LABEL is
getting passed to it.
I understand that CODE_LABEL is in the RTX_EXTRA class and intuitively
It is wrong to use INSN_CODE ( which is used in recog_memoized) on
CODE_LABEL simply because it is not int the RTX_INSN class.
However, the internals only warn against using INSN_CODE on use,
clobber, asm_input, addr_vec, addr_diff_vec. There is no mention of
other members of the other members of RTX_EXTRA. or shouldnt
recog_memoized have an INSN_P check in it ?
Am I missing something here ?
TIA,
Pranav