[PATCH] Fix a const-safety issue on GCC-4.9 and above
Palmer Dabbelt
palmer@dabbelt.com
Tue Dec 20 22:26:00 GMT 2016
From: Tim Newsome <tim@sifive.com>
gas/ChangeLog
2016-12-19 Tim Newsome <tim@sifive.com>
* config/tc-riscv.c (riscv_pre_output_hook): Remove const from
loc4_frag.
---
gas/config/tc-riscv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
2.10.2
More information about the Binutils
mailing list