aboutsummaryrefslogtreecommitdiff
path: root/gas/expr.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-09-19 23:51:35 +0000
committerAlan Modra <amodra@gmail.com>2002-09-19 23:51:35 +0000
commit263462410cf8a0857c75b40cfc1f800f88c743b7 (patch)
tree11ad589fbf7659038e9900ecb265318c1821921b /gas/expr.c
parent2f870471d434335b998b1af09805b8955ff6b262 (diff)
downloadgdb-263462410cf8a0857c75b40cfc1f800f88c743b7.zip
gdb-263462410cf8a0857c75b40cfc1f800f88c743b7.tar.gz
gdb-263462410cf8a0857c75b40cfc1f800f88c743b7.tar.bz2
* write.h (struct fix): Add fx_dot_value.
(dot_value): Declare. * write.c (dot_value): New var. (fix_new_internal): Save dot_value as fx_dot_value. * expr.c (expr): Update dot_value.
Diffstat (limited to 'gas/expr.c')
-rw-r--r--gas/expr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gas/expr.c b/gas/expr.c
index 64c92ca..b8e49f5 100644
--- a/gas/expr.c
+++ b/gas/expr.c
@@ -1657,6 +1657,10 @@ expr (rankarg, resultP)
know (rank >= 0);
+ /* Save the value of dot for the fixup code. */
+ if (rank == 0)
+ dot_value = frag_now_fix ();
+
retval = operand (resultP);
/* operand () gobbles spaces. */