RISC-V: Allow nested implications for extensions
authorNathan Huckleberry <nhuck@google.com>
Fri, 30 Jun 2023 20:44:17 +0000 (22:44 +0200)
committerJeff Law <jlaw@ventanamicro>
Sat, 1 Jul 2023 13:29:34 +0000 (07:29 -0600)
commit48558a5e5471a5b6d084dbb836af333b85b4123c
treed600d0f0eee2062d6a504cce17104fbdfcdd8447
parentc62d5acf8478b0cb3c93130cb15fa76aecd93a02
RISC-V: Allow nested implications for extensions

Certain extensions require two levels of implications.  For example,
zvkng implies zvkn and zvkn implies zvkned.  Enabling zvkng should also
enable zvkned.

This patch fixes this behavior.

bfd/ChangeLog:

* elfxx-riscv.c (riscv_parse_add_implicit_subsets): Allow nested
implications for extensions.

Signed-off-by: Nathan Huckleberry <nhuck@google.com>
Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
bfd/elfxx-riscv.c