]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
RISC-V: Shrink the riscv_implicit_subsets table.
authorNelson Chu <nelson@rivosinc.com>
Thu, 27 Jun 2024 04:27:33 +0000 (12:27 +0800)
committerNelson Chu <nelson@rivosinc.com>
Fri, 28 Jun 2024 05:37:08 +0000 (13:37 +0800)
commit685dcd295af6ed52154ce44fbe5d8cc58f2f1a51
treeae1fecaa0826e1669220c8e8a465bf12915f4b13
parent81c353cb9cbba572b73ea4a3949571c44282b0df
RISC-V: Shrink the riscv_implicit_subsets table.

Allow to add implicit extensions by using the syntax of `.option arch, +-', so
that the table is shrinked and more readable.

bfd/
* elfxx-riscv.c (check_implicit_always): Removed the unused IMPLICIT
parameter.
(check_implicit_for_i): Likewise.
(riscv_implicit_subsets): Shrink the table by allowing the syntax of
`.option arch, +-' for implicit extensions.
(riscv_update_subset1): New function, called from riscv_update_subset
or riscv_parse_add_implicit_subsets.  It basically does the same thing
as riscv_update_subset function before.
(riscv_parse_add_implicit_subsets): Updated.
(riscv_update_subset): Updated.
bfd/elfxx-riscv.c