Additional c99 elfxx-riscv.c fix

Similar to 2d0e121701.

bfd/

    	* elfxx-riscv.c (riscv_parse_subset): Don't use C99.
This commit is contained in:
Sebastian Huber 2020-03-18 07:06:28 +01:00
parent 81a65eb338
commit effc14f54c
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2020-03-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
* elfxx-riscv.c (riscv_parse_subset): Don't use C99.
2020-03-18 Nick Clifton <nickc@redhat.com>
PR 25673

View File

@ -1464,6 +1464,7 @@ riscv_parse_subset (riscv_parse_subset_t *rps,
const char *arch)
{
const char *p = arch;
size_t i;
if (strncmp (p, "rv32", 4) == 0)
{
@ -1490,7 +1491,7 @@ riscv_parse_subset (riscv_parse_subset_t *rps,
/* Parse the different classes of extensions in the specified order. */
for (size_t i = 0; i < ARRAY_SIZE (parse_config); ++i) {
for (i = 0; i < ARRAY_SIZE (parse_config); ++i) {
p = riscv_parse_prefixed_ext (rps, arch, p, &parse_config[i]);
if (p == NULL)