From: Sebastian Huber Date: Wed, 18 Mar 2020 06:06:28 +0000 (+0100) Subject: Additional c99 elfxx-riscv.c fix X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=effc14f54c3fdcb700f22ce53cef97665c0fdf7f;p=binutils-gdb.git Additional c99 elfxx-riscv.c fix Similar to 2d0e121701a95e0f37af02bc622393b1ccd88c76. bfd/ * elfxx-riscv.c (riscv_parse_subset): Don't use C99. --- 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)