* cgen-opc.in (@arch@_cgen_get_insn_operands): Handle empty
authorDoug Evans <dje@google.com>
Fri, 13 Feb 1998 22:35:43 +0000 (22:35 +0000)
committerDoug Evans <dje@google.com>
Fri, 13 Feb 1998 22:35:43 +0000 (22:35 +0000)
operand instance list.
* m32r-opc.c: Regenerate.

opcodes/ChangeLog
opcodes/cgen-opc.in
opcodes/m32r-opc.c

index 30d5fe25bbf303b349bf5e304515741fc47a0ac5..462137469b0d6c57ed2bb5d9e39a2caa6ee76c3d 100644 (file)
@@ -1,3 +1,9 @@
+Fri Feb 13 14:26:06 1998  Doug Evans  <devans@canuck.cygnus.com>
+
+       * 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  <ian@cygnus.com>
 
        * Makefile.am (AUTOMAKE_OPTIONS): Define.
index af51ef2f89a141d01dd0e217128b41afcacdfb07..9679b0479c5f1174c9eb76be20b88dadfeac5c05 100644 (file)
@@ -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);
index 41651af30285a762c53ef33e323cdb71cd0656b0..22c84a9562e827648c84a5149fafcad1a2ef1cb3 100644 (file)
@@ -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);