X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=opcodes%2Fmt-desc.c;h=24e2af02f5ecc6b751abbb2b976400de962d4f79;hb=cd3ea7c69acc5045eb28f9bf80d923116e15e4f5;hp=1a3441adfcaa8501b35f6316d242fb61c03073bb;hpb=2571583aed598dd3f9651b53434e5f177a0e3cf7;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/mt-desc.c b/opcodes/mt-desc.c index 1a3441adfc..24e2af02f5 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 :