diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a3f731349e2..44b18d87f97 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2020-03-19 Sebastian Huber + + * elfxx-riscv.c (riscv_parse_subset): Don't use C99. + 2020-03-18 Nick Clifton PR 25673 diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c index dc6db0c307d..b15fdee9c71 100644 --- a/bfd/elfxx-riscv.c +++ b/bfd/elfxx-riscv.c @@ -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)