jump insn.
From-SVN: r31420
+2000-01-14 Nick Clifton <nickc@cygnus.com>
+
+ * emit-rtl.c (emit_insn): If checking is enabled, make sure
+ that this function has not been used to emit a jump
+ instruction.
+
+ * jump.c (return_jump_1): Cope with being passed a null rtx.
+
2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* eh-common.h: PROTO -> PARAMS.
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;
}
void *data ATTRIBUTE_UNUSED;
{
rtx x = *loc;
- return GET_CODE (x) == RETURN;
+ return x && GET_CODE (x) == RETURN;
}
int