RISC-V: Remove a loop in the ISA parser
authorTsukasa OI <research_trasio@irq.a4lg.com>
Wed, 23 Feb 2022 01:47:22 +0000 (10:47 +0900)
committerNelson Chu <nelson.chu@sifive.com>
Fri, 25 Feb 2022 09:05:01 +0000 (17:05 +0800)
commit0f94906fba909f75cb00402caad8e37be92f9c6f
treef65b80ab255729e647f30d9a9f426d3119a775a1
parent9a9dfb6880e3b093922e3db0cd760ebbce21fe06
RISC-V: Remove a loop in the ISA parser

Since commit e601909a3287bf541c6a7d82214bb387d2c76d82 ("RISC-V: Support
to parse the multi-letter prefix in the architecture string.") changed
so that all prefixed extensions are parsed in single
riscv_parse_prefixed_ext call, a "while" loop on riscv_parse_subset
is no longer required.

bfd/ChangeLog:

* elfxx-riscv.c (riscv_parse_subset): Remove unnecessary loop.
bfd/elfxx-riscv.c