From ad5bc88245bd8416fd16a2384eb00ec501bcc5e4 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Tue, 20 Dec 2016 14:25:37 -0800 Subject: [PATCH] Fix a const-safety issue on GCC-4.9 and above * config/tc-riscv.c (riscv_pre_output_hook): Remove const from loc4_frag. --- gas/ChangeLog | 5 +++++ gas/config/tc-riscv.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; -- 2.30.2