From 7cb7b948ce62831a999f88054a6b2d39afbe926e Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 15 Mar 2017 09:19:42 +0000 Subject: 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. --- gas/config/tc-riscv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gas/config') 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) { -- cgit v1.1