diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-03-18 07:06:28 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-03-19 07:07:11 +0100 |
commit | effc14f54c3fdcb700f22ce53cef97665c0fdf7f (patch) | |
tree | e8fa16e6eb7f7f6e65baae855c8c7114f1d7cc65 /bfd/elfxx-riscv.c | |
parent | 81a65eb338cf7b40ef76b1cdb150eefd8495e282 (diff) | |
download | binutils-effc14f54c3fdcb700f22ce53cef97665c0fdf7f.zip binutils-effc14f54c3fdcb700f22ce53cef97665c0fdf7f.tar.gz binutils-effc14f54c3fdcb700f22ce53cef97665c0fdf7f.tar.bz2 |
Additional c99 elfxx-riscv.c fix
Similar to 2d0e121701a95e0f37af02bc622393b1ccd88c76.
bfd/
* elfxx-riscv.c (riscv_parse_subset): Don't use C99.
Diffstat (limited to 'bfd/elfxx-riscv.c')
-rw-r--r-- | bfd/elfxx-riscv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c index dc6db0c..b15fdee 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) |