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