From b2f18612927ff3193160cda4099d7848c4697912 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Fri, 13 Feb 1998 22:35:43 +0000 Subject: [PATCH] * cgen-opc.in (@arch@_cgen_get_insn_operands): Handle empty operand instance list. * m32r-opc.c: Regenerate. --- opcodes/ChangeLog | 6 ++++++ opcodes/cgen-opc.in | 3 ++- opcodes/m32r-opc.c | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 30d5fe25bbf..462137469b0 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,9 @@ +Fri Feb 13 14:26:06 1998 Doug Evans + + * cgen-opc.in (@arch@_cgen_get_insn_operands): Handle empty + operand instance list. + * m32r-opc.c: Regenerate. + Fri Feb 13 14:53:02 1998 Ian Lance Taylor * Makefile.am (AUTOMAKE_OPTIONS): Define. diff --git a/opcodes/cgen-opc.in b/opcodes/cgen-opc.in index af51ef2f89a..9679b0479c5 100644 --- a/opcodes/cgen-opc.in +++ b/opcodes/cgen-opc.in @@ -143,7 +143,8 @@ const CGEN_INSN * return NULL; for (i = 0, opinst = CGEN_INSN_OPERANDS (insn); - CGEN_OPERAND_INSTANCE_TYPE (opinst) != CGEN_OPERAND_INSTANCE_END; + opinst != NULL + && CGEN_OPERAND_INSTANCE_TYPE (opinst) != CGEN_OPERAND_INSTANCE_END; ++i, ++opinst) { const CGEN_OPERAND *op = CGEN_OPERAND_INSTANCE_OPERAND (opinst); diff --git a/opcodes/m32r-opc.c b/opcodes/m32r-opc.c index 41651af3028..22c84a9562e 100644 --- a/opcodes/m32r-opc.c +++ b/opcodes/m32r-opc.c @@ -143,7 +143,8 @@ m32r_cgen_get_insn_operands (insn, insn_value, length, indices) return NULL; for (i = 0, opinst = CGEN_INSN_OPERANDS (insn); - CGEN_OPERAND_INSTANCE_TYPE (opinst) != CGEN_OPERAND_INSTANCE_END; + opinst != NULL + && CGEN_OPERAND_INSTANCE_TYPE (opinst) != CGEN_OPERAND_INSTANCE_END; ++i, ++opinst) { const CGEN_OPERAND *op = CGEN_OPERAND_INSTANCE_OPERAND (opinst); -- 2.30.2