This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb/binutils-2_28-branch] Fix building riscv targets with gcc v6.3.1
- From: Alan Modra <amodra at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 20 Jun 2017 09:13:25 -0000
- Subject: [binutils-gdb/binutils-2_28-branch] Fix building riscv targets with gcc v6.3.1
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=467f950b4bb12bd96e4e210389f550575340a288
commit 467f950b4bb12bd96e4e210389f550575340a288
Author: Nick Clifton <nickc@redhat.com>
Date: Wed Mar 15 09:19:42 2017 +0000
Fix building riscv targets with gcc v6.3.1
* config/tc-riscv.c (riscv_pre_output_hook): Fix compile time
warning about discarding a const qualifier.
Diff:
---
gas/ChangeLog | 7 +++++++
gas/config/tc-riscv.c | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/gas/ChangeLog b/gas/ChangeLog
index d6ab8a1..a05355a 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,10 @@
+2017-06-05 Alan Modra <amodra@gmail.com>
+
+ Apply from master
+ 2017-03-15 Nick Clifton <nickc@redhat.com>
+ * config/tc-riscv.c (riscv_pre_output_hook): Fix compile time
+ warning about discarding a const qualifier.
+
2017-04-03 Palmer Dabbelt <palmer@dabbelt.com>
* config/tc-riscv.c (riscv_clear_subsets): Cast argument to free to
diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c
index 88457c6..fb9a3ed 100644
--- a/gas/config/tc-riscv.c
+++ b/gas/config/tc-riscv.c
@@ -2090,7 +2090,7 @@ riscv_pre_output_hook (void)
for (s = stdoutput->sections; s; s = s->next)
for (frch = seg_info (s)->frchainP; frch; frch = frch->frch_next)
{
- const fragS *frag;
+ fragS *frag;
for (frag = frch->frch_root; frag; frag = frag->fr_next)
{