summaryrefslogtreecommitdiff
path: root/opcodes/m32c-desc.c
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes/m32c-desc.c')
-rw-r--r--opcodes/m32c-desc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/opcodes/m32c-desc.c b/opcodes/m32c-desc.c
index 596f2c164ca..54e2912d5d5 100644
--- a/opcodes/m32c-desc.c
+++ b/opcodes/m32c-desc.c
@@ -62880,7 +62880,7 @@ lookup_mach_via_bfd_name (const CGEN_MACH *table, const char *name)
return table;
++table;
}
- abort ();
+ return NULL;
}
/* Subroutine of m32c_cgen_cpu_open to build the hardware table. */
@@ -63094,7 +63094,8 @@ m32c_cgen_cpu_open (enum cgen_cpu_open_arg arg_type, ...)
const CGEN_MACH *mach =
lookup_mach_via_bfd_name (m32c_cgen_mach_table, name);
- machs |= 1 << mach->num;
+ if (mach != NULL)
+ machs |= 1 << mach->num;
break;
}
case CGEN_CPU_OPEN_ENDIAN :