Fix a const-safety issue on GCC-4.9 and above

* config/tc-riscv.c (riscv_pre_output_hook): Remove const from
	loc4_frag.
This commit is contained in:
Tim Newsome 2016-12-20 14:25:37 -08:00 committed by Alan Modra
parent 58a6d3c9d8
commit ad5bc88245
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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;