aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-d10v.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-11-04 14:41:00 +1030
committerAlan Modra <amodra@gmail.com>2014-11-04 22:40:44 +1030
commit127a8db1ed4fc7903007dc23c6b11f613933f9ef (patch)
tree522833f4eb898ed9b079caaebfe0f25dd497b94c /gas/config/tc-d10v.c
parent0cdcdbf8dbadc70194d46b4c3400ba8cc2a10fc0 (diff)
downloadgdb-127a8db1ed4fc7903007dc23c6b11f613933f9ef.zip
gdb-127a8db1ed4fc7903007dc23c6b11f613933f9ef.tar.gz
gdb-127a8db1ed4fc7903007dc23c6b11f613933f9ef.tar.bz2
Use frag_now_fix_octets in gas d10v, d30v
obstack_next_free is supposed to return a void* rather than the char* it does currently, so expressions involving pointer arithmetic need a cast. Avoid the issue. * config/tc-d10v.c (find_opcode): Call frag_now_fix_octets rather than equivalent obstack_next_free expression. * config/tc-d30v.c (find_format): Likewise.
Diffstat (limited to 'gas/config/tc-d10v.c')
-rw-r--r--gas/config/tc-d10v.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gas/config/tc-d10v.c b/gas/config/tc-d10v.c
index 8e3d171..dacfeb7 100644
--- a/gas/config/tc-d10v.c
+++ b/gas/config/tc-d10v.c
@@ -1226,9 +1226,7 @@ find_opcode (struct d10v_opcode *opcode, expressionS myops[])
sym_frag = symbol_get_frag (myops[opnum].X_add_symbol);
found_symbol = FALSE;
- current_position =
- obstack_next_free (&frchain_now->frch_obstack)
- - frag_now->fr_literal;
+ current_position = frag_now_fix_octets ();
symbol_position = S_GET_VALUE (myops[opnum].X_add_symbol);
for (f = frchain_now->frch_root; f; f = f->fr_next)