diff options
Diffstat (limited to 'bfd/elfxx-riscv.c')
-rw-r--r-- | bfd/elfxx-riscv.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c index ffc18c9..f920e0c 100644 --- a/bfd/elfxx-riscv.c +++ b/bfd/elfxx-riscv.c @@ -1729,7 +1729,6 @@ riscv_parse_prefixed_ext (riscv_parse_subset_t *rps, { int major_version; int minor_version; - const char *last_name; enum riscv_prefix_ext_class class; while (*p) @@ -1806,28 +1805,6 @@ riscv_parse_prefixed_ext (riscv_parse_subset_t *rps, return NULL; } - /* Check that the extension isn't duplicate. */ - last_name = rps->subset_list->tail->name; - if (!strcasecmp (last_name, subset)) - { - rps->error_handler - (_("%s: duplicate prefixed ISA extension `%s'"), - arch, subset); - free (subset); - return NULL; - } - - /* Check that the extension is in expected order. */ - if (riscv_compare_subsets (last_name, subset) > 0) - { - rps->error_handler - (_("%s: prefixed ISA extension `%s' is not in expected " - "order. It must come before `%s'"), - arch, subset, last_name); - free (subset); - return NULL; - } - riscv_parse_add_subset (rps, subset, major_version, minor_version, false); |