diff options
Diffstat (limited to 'opcodes/m32r-desc.c')
-rw-r--r-- | opcodes/m32r-desc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/opcodes/m32r-desc.c b/opcodes/m32r-desc.c index eb5ed36..7b92d67 100644 --- a/opcodes/m32r-desc.c +++ b/opcodes/m32r-desc.c @@ -1212,7 +1212,7 @@ lookup_mach_via_bfd_name (const CGEN_MACH *table, const char *name) return table; ++table; } - abort (); + return NULL; } /* Subroutine of m32r_cgen_cpu_open to build the hardware table. */ @@ -1426,7 +1426,8 @@ m32r_cgen_cpu_open (enum cgen_cpu_open_arg arg_type, ...) const CGEN_MACH *mach = lookup_mach_via_bfd_name (m32r_cgen_mach_table, name); - machs |= 1 << mach->num; + if (mach != NULL) + machs |= 1 << mach->num; break; } case CGEN_CPU_OPEN_ENDIAN : |