Fix building riscv targets with gcc v6.3.1
authorNick Clifton <nickc@redhat.com>
Wed, 15 Mar 2017 09:19:42 +0000 (09:19 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 15 Mar 2017 09:19:42 +0000 (09:19 +0000)
* config/tc-riscv.c (riscv_pre_output_hook): Fix compile time
warning about discarding a const qualifier.

gas/ChangeLog
gas/config/tc-riscv.c

index 19245ec4e2069af2b25378fdb3f31e6e32f7e352..e376e30c120cab30ba50fd9d8907d789c1611884 100644 (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.
index 723ccbafb0f8383cd62d877b6b08fa69facd48cf..79211f3f32113d7f75e4ae8b4e964323b2dc2d70 100644 (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)
          {