diff options
author | Alan Modra <amodra@gmail.com> | 2017-04-13 10:33:53 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-04-13 21:38:04 +0930 |
commit | 4274208406762da7af6dd697f44d8e6895061530 (patch) | |
tree | 585497cd88abebb749e71a67d2e0f88621eabbd0 /opcodes/lm32-desc.c | |
parent | 808480f667e41e2fdb66bfdc9d5e047f1aa34a68 (diff) | |
download | fsf-binutils-gdb-4274208406762da7af6dd697f44d8e6895061530.zip fsf-binutils-gdb-4274208406762da7af6dd697f44d8e6895061530.tar.gz fsf-binutils-gdb-4274208406762da7af6dd697f44d8e6895061530.tar.bz2 |
Regen cgen files
* epiphany-desc.c: Regenerate.
* fr30-desc.c: Regenerate.
* frv-desc.c: Regenerate.
* ip2k-desc.c: Regenerate.
* iq2000-desc.c: Regenerate.
* lm32-desc.c: Regenerate.
* m32c-desc.c: Regenerate.
* m32r-desc.c: Regenerate.
* mep-desc.c: Regenerate.
* mt-desc.c: Regenerate.
* or1k-desc.c: Regenerate.
* xc16x-desc.c: Regenerate.
* xstormy16-desc.c: Regenerate.
Diffstat (limited to 'opcodes/lm32-desc.c')
-rw-r--r-- | opcodes/lm32-desc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/opcodes/lm32-desc.c b/opcodes/lm32-desc.c index 0a64e0a..1b3e565 100644 --- a/opcodes/lm32-desc.c +++ b/opcodes/lm32-desc.c @@ -849,7 +849,7 @@ lookup_mach_via_bfd_name (const CGEN_MACH *table, const char *name) return table; ++table; } - abort (); + return NULL; } /* Subroutine of lm32_cgen_cpu_open to build the hardware table. */ @@ -1063,7 +1063,8 @@ lm32_cgen_cpu_open (enum cgen_cpu_open_arg arg_type, ...) const CGEN_MACH *mach = lookup_mach_via_bfd_name (lm32_cgen_mach_table, name); - machs |= 1 << mach->num; + if (mach != NULL) + machs |= 1 << mach->num; break; } case CGEN_CPU_OPEN_ENDIAN : |