This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] Fix a const-safety issue on GCC-4.9 and above
- From: Palmer Dabbelt <palmer at dabbelt dot com>
- To: binutils at sourceware dot org
- Cc: Tim Newsome <tim at sifive dot com>
- Date: Tue, 20 Dec 2016 14:25:37 -0800
- Subject: [PATCH] Fix a const-safety issue on GCC-4.9 and above
- Authentication-results: sourceware.org; auth=none
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