aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2016-12-20 14:25:37 -0800
committerAlan Modra <amodra@gmail.com>2016-12-22 00:21:16 +1030
commitad5bc88245bd8416fd16a2384eb00ec501bcc5e4 (patch)
tree22ea1c321bebad62dc2a9351dc6b2ada414c7367 /gas
parent58a6d3c9d8d4d4be8f1dfc1a49fed264dceddaba (diff)
downloadgdb-ad5bc88245bd8416fd16a2384eb00ec501bcc5e4.zip
gdb-ad5bc88245bd8416fd16a2384eb00ec501bcc5e4.tar.gz
gdb-ad5bc88245bd8416fd16a2384eb00ec501bcc5e4.tar.bz2
Fix a const-safety issue on GCC-4.9 and above
* config/tc-riscv.c (riscv_pre_output_hook): Remove const from loc4_frag.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-riscv.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 29c1c0a..616fd09 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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.
diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c
index 2d953c5..8c78f61 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;