mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-30 21:44:19 +08:00
RISC-V: Remove a loop in the ISA parser
Since commit e601909a32
("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.
This commit is contained in:
parent
9a9dfb6880
commit
0f94906fba
@ -2019,14 +2019,11 @@ riscv_parse_subset (riscv_parse_subset_t *rps,
|
||||
if (p == NULL)
|
||||
return false;
|
||||
|
||||
/* Parse the different classes of extensions in the specified order. */
|
||||
while (*p != '\0')
|
||||
{
|
||||
p = riscv_parse_prefixed_ext (rps, arch, p);
|
||||
/* Parse prefixed extensions. */
|
||||
p = riscv_parse_prefixed_ext (rps, arch, p);
|
||||
|
||||
if (p == NULL)
|
||||
return false;
|
||||
}
|
||||
if (p == NULL)
|
||||
return false;
|
||||
|
||||
/* Finally add implicit extensions according to the current
|
||||
extensions. */
|
||||
|
Loading…
Reference in New Issue
Block a user