Skip to content

Commit

Permalink
RISC-V: Tidying for riscv_parse_check_conflicts
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
a4lg committed Mar 16, 2023
1 parent 0961e63 commit a97f608
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bfd/elfxx-riscv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit a97f608

Please sign in to comment.