From: Tim Newsome Date: Tue, 20 Dec 2016 22:25:37 +0000 (-0800) Subject: Fix a const-safety issue on GCC-4.9 and above X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ad5bc88245bd8416fd16a2384eb00ec501bcc5e4;p=binutils-gdb.git Fix a const-safety issue on GCC-4.9 and above * config/tc-riscv.c (riscv_pre_output_hook): Remove const from loc4_frag. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 29c1c0adab8..616fd09ba8b 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2016-12-21 Tim Newsome + + * config/tc-riscv.c (riscv_pre_output_hook): Remove const from + loc4_frag. + 2016-12-21 Alan Modra * doc/c-lm32.texi: Fix chars with high bit set. diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c index 2d953c54cad..8c78f614a53 100644 --- a/gas/config/tc-riscv.c +++ b/gas/config/tc-riscv.c @@ -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;