From: Jim Wilson Date: Thu, 26 Sep 2002 22:04:19 +0000 (+0000) Subject: Fix v850 .offset pseudo-op X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=825487fa2d21327c25aebcdac2be47117e26791f;p=binutils-gdb.git Fix v850 .offset pseudo-op * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix and frag_more. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index d88670b040b..b1b96d4337e 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2002-09-26 Jim Wilson + + * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix + and frag_more. + 2002-09-26 Thiemo Seufer * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16 diff --git a/gas/config/tc-v850.c b/gas/config/tc-v850.c index b3c45a033e4..a3aaee8c473 100644 --- a/gas/config/tc-v850.c +++ b/gas/config/tc-v850.c @@ -193,12 +193,12 @@ static void v850_offset (ignore) int ignore ATTRIBUTE_UNUSED; { + char *pfrag; int temp = get_absolute_expression (); - - temp -= frag_now_fix (); - - if (temp > 0) - (void) frag_more (temp); + + pfrag = frag_var (rs_org, 1, 1, (relax_substateT)0, (symbolS *)0, + (offsetT) temp, (char *) 0); + *pfrag = 0; demand_empty_rest_of_line (); }