aboutsummaryrefslogtreecommitdiff
path: root/opcodes/frv-desc.c
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes/frv-desc.c')
-rw-r--r--opcodes/frv-desc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/opcodes/frv-desc.c b/opcodes/frv-desc.c
index ab4d7eb..bba510c 100644
--- a/opcodes/frv-desc.c
+++ b/opcodes/frv-desc.c
@@ -6173,7 +6173,7 @@ lookup_mach_via_bfd_name (const CGEN_MACH *table, const char *name)
return table;
++table;
}
- abort ();
+ return NULL;
}
/* Subroutine of frv_cgen_cpu_open to build the hardware table. */
@@ -6386,8 +6386,8 @@ frv_cgen_cpu_open (enum cgen_cpu_open_arg arg_type, ...)
const char *name = va_arg (ap, const char *);
const CGEN_MACH *mach =
lookup_mach_via_bfd_name (frv_cgen_mach_table, name);
-
- machs |= 1 << mach->num;
+ if (mach != NULL)
+ machs |= 1 << mach->num;
break;
}
case CGEN_CPU_OPEN_ENDIAN :