projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58a6d3c
)
Fix a const-safety issue on GCC-4.9 and above
author
Tim Newsome
<tim@sifive.com>
Tue, 20 Dec 2016 22:25:37 +0000
(14:25 -0800)
committer
Alan Modra
<amodra@gmail.com>
Wed, 21 Dec 2016 13:51:16 +0000
(
00:21
+1030)
* config/tc-riscv.c (riscv_pre_output_hook): Remove const from
loc4_frag.
gas/ChangeLog
patch
|
blob
|
history
gas/config/tc-riscv.c
patch
|
blob
|
history
diff --git
a/gas/ChangeLog
b/gas/ChangeLog
index 29c1c0adab8098210f5a955b10fb282e7d57cabe..616fd09ba8ba139323e1069dbe148b5465de3771 100644
(file)
--- 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 2d953c54cada06efa150663d418b53bf52f48e8d..8c78f614a536be0c3fbb11b1527ae058a2881586 100644
(file)
--- 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;