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