aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-v850.c
diff options
context:
space:
mode:
authorJim Wilson <wilson@tuliptree.org>2002-09-26 22:04:19 +0000
committerJim Wilson <wilson@tuliptree.org>2002-09-26 22:04:19 +0000
commit825487fa2d21327c25aebcdac2be47117e26791f (patch)
treea1106303d99417c171465e71261eff6b5917c666 /gas/config/tc-v850.c
parentafbcd36fc184d101d697b2fab62546a03702ae2f (diff)
downloadgdb-825487fa2d21327c25aebcdac2be47117e26791f.zip
gdb-825487fa2d21327c25aebcdac2be47117e26791f.tar.gz
gdb-825487fa2d21327c25aebcdac2be47117e26791f.tar.bz2
Fix v850 .offset pseudo-op
* config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix and frag_more.
Diffstat (limited to 'gas/config/tc-v850.c')
-rw-r--r--gas/config/tc-v850.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gas/config/tc-v850.c b/gas/config/tc-v850.c
index b3c45a0..a3aaee8 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 ();
}