* [PATCH] Additional c99 elfxx-riscv.c fix
@ 2020-03-18 6:08 Sebastian Huber
2020-03-18 22:24 ` Jim Wilson
0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Huber @ 2020-03-18 6:08 UTC (permalink / raw)
To: binutils
Similar to 2d0e121701a95e0f37af02bc622393b1ccd88c76.
* elfxx-riscv.c (riscv_parse_subset): Don't use C99.
---
bfd/elfxx-riscv.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c
index dc6db0c307..b15fdee9c7 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)
--
2.16.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Additional c99 elfxx-riscv.c fix
2020-03-18 6:08 [PATCH] Additional c99 elfxx-riscv.c fix Sebastian Huber
@ 2020-03-18 22:24 ` Jim Wilson
0 siblings, 0 replies; 2+ messages in thread
From: Jim Wilson @ 2020-03-18 22:24 UTC (permalink / raw)
To: Sebastian Huber; +Cc: Binutils
On Tue, Mar 17, 2020 at 11:08 PM Sebastian Huber
<sebastian.huber@embedded-brains.de> wrote:
> * elfxx-riscv.c (riscv_parse_subset): Don't use C99.
This is OK.
Jim
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-03-18 22:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-18 6:08 [PATCH] Additional c99 elfxx-riscv.c fix Sebastian Huber
2020-03-18 22:24 ` Jim Wilson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).