aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2017-03-15 09:19:42 +0000
committerNick Clifton <nickc@redhat.com>2017-03-15 09:19:42 +0000
commit7cb7b948ce62831a999f88054a6b2d39afbe926e (patch)
tree913d571945b2355d8f80fa2465a13b17450da789 /gas/config
parentcc7e96c25d59db0a5279da0a0ff36d61151f3021 (diff)
downloadgdb-7cb7b948ce62831a999f88054a6b2d39afbe926e.zip
gdb-7cb7b948ce62831a999f88054a6b2d39afbe926e.tar.gz
gdb-7cb7b948ce62831a999f88054a6b2d39afbe926e.tar.bz2
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.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-riscv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c
index 723ccba..79211f3 100644
--- a/gas/config/tc-riscv.c
+++ b/gas/config/tc-riscv.c
@@ -2077,7 +2077,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)
{