X-Git-Url: http://drtracing.org/?a=blobdiff_plain;ds=inline;f=opcodes%2Fm32c-desc.c;h=54e2912d5d5dff10bc5b9a1fa03e5d43a290aedf;hb=4274208406762da7af6dd697f44d8e6895061530;hp=596f2c164caacf59aae3274b44abec922ca6b7f3;hpb=808480f667e41e2fdb66bfdc9d5e047f1aa34a68;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/m32c-desc.c b/opcodes/m32c-desc.c index 596f2c164c..54e2912d5d 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 :