Fix a const-safety issue on GCC-4.9 and above
authorTim Newsome <tim@sifive.com>
Tue, 20 Dec 2016 22:25:37 +0000 (14:25 -0800)
committerAlan Modra <amodra@gmail.com>
Wed, 21 Dec 2016 13:51:16 +0000 (00:21 +1030)
* config/tc-riscv.c (riscv_pre_output_hook): Remove const from
loc4_frag.

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

index 29c1c0adab8098210f5a955b10fb282e7d57cabe..616fd09ba8ba139323e1069dbe148b5465de3771 100644 (file)
@@ -1,3 +1,8 @@
+2016-12-21 Tim Newsome <tim@sifive.com>
+
+       * config/tc-riscv.c (riscv_pre_output_hook): Remove const from
+       loc4_frag.
+
 2016-12-21  Alan Modra  <amodra@gmail.com>
 
        * doc/c-lm32.texi: Fix chars with high bit set.
index 2d953c54cada06efa150663d418b53bf52f48e8d..8c78f614a536be0c3fbb11b1527ae058a2881586 100644 (file)
@@ -2061,7 +2061,7 @@ riscv_pre_output_hook (void)
          {
            if (frag->fr_type == rs_cfa)
              {
-               const fragS *loc4_frag;
+               fragS *loc4_frag;
                expressionS exp;
 
                symbolS *add_symbol = frag->fr_symbol->sy_value.X_add_symbol;