summaryrefslogtreecommitdiff
path: root/gas/expr.c
diff options
context:
space:
mode:
authorChung-Lin Tang <cltang@codesourcery.com>2013-03-08 10:17:00 +0000
committerChung-Lin Tang <cltang@codesourcery.com>2013-03-08 10:17:00 +0000
commit4b728c64ce45b931b10bf83dcecb49e43bff5e87 (patch)
treef153e37bcc7163eb8144a1e85818107d1980bc13 /gas/expr.c
parent4a8ac447d8600f9a1d659ef651fdf45b3d971fe6 (diff)
downloadbinutils-redhat-4b728c64ce45b931b10bf83dcecb49e43bff5e87.tar.gz
2013-03-08 Chung-Lin Tang <cltang@codesourcery.com>
* write.h (struct fix): Add fx_dot_frag field. (dot_frag): Declare. * write.c (dot_frag): New variable. (fix_new_internal): Set fx_dot_frag field with dot_frag. (fixup_segment): Base calculation of fx_offset with fx_dot_frag. * expr.c (expr): Save value of frag_now in dot_frag when setting dot_value. * read.c (emit_expr): Likewise. Delete comments.
Diffstat (limited to 'gas/expr.c')
-rw-r--r--gas/expr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gas/expr.c b/gas/expr.c
index 105153ede3..500f93840b 100644
--- a/gas/expr.c
+++ b/gas/expr.c
@@ -1735,7 +1735,10 @@ expr (int rankarg, /* Larger # is higher rank. */
/* Save the value of dot for the fixup code. */
if (rank == 0)
- dot_value = frag_now_fix ();
+ {
+ dot_value = frag_now_fix ();
+ dot_frag = frag_now;
+ }
retval = operand (resultP, mode);