Skip to content

Commit 603d945

Browse files
committed
RISC-V: Tidying for riscv_parse_check_conflicts
This commit replaces some riscv_lookup_subset calls to simpler riscv_subset_supports calls for tidying. Although it could be applied to 'E' as well, it might require version checking and excluded from tidying. bfd/ChangeLog: * elfxx-riscv.c (riscv_parse_check_conflicts): Tidying.
1 parent d80081e commit 603d945

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bfd/elfxx-riscv.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1836,8 +1836,7 @@ riscv_parse_check_conflicts (riscv_parse_subset_t *rps)
18361836
rps->error_handler (_("rv%d does not support the `q' extension"), xlen);
18371837
no_conflict = false;
18381838
}
1839-
if (riscv_lookup_subset (rps->subset_list, "zfinx", &subset)
1840-
&& riscv_lookup_subset (rps->subset_list, "f", &subset))
1839+
if (riscv_subset_supports (rps, "zfinx") && riscv_subset_supports (rps, "f"))
18411840
{
18421841
rps->error_handler
18431842
(_("`zfinx' is conflict with the `f/d/q/zfh/zfhmin' extension"));

0 commit comments

Comments
 (0)