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.
This commit is contained in:
Nick Clifton 2017-03-15 09:19:42 +00:00
parent cc7e96c25d
commit 7cb7b948ce
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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-03-02 Kuan-Lin Chen <rufus@andestech.com>
* config/tc-riscv.h (HWARD2_USE_FIXED_ADVANCE_PC): New define.

View File

@ -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)
{