diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c index 19391d94e30..20726fa0dd0 100644 --- a/bfd/elfxx-riscv.c +++ b/bfd/elfxx-riscv.c @@ -1836,8 +1836,7 @@ riscv_parse_check_conflicts (riscv_parse_subset_t *rps) rps->error_handler (_("rv%d does not support the `q' extension"), xlen); no_conflict = false; } - if (riscv_lookup_subset (rps->subset_list, "zfinx", &subset) - && riscv_lookup_subset (rps->subset_list, "f", &subset)) + if (riscv_subset_supports (rps, "zfinx") && riscv_subset_supports (rps, "f")) { rps->error_handler (_("`zfinx' is conflict with the `f/d/q/zfh/zfhmin' extension"));