From 4b728c64ce45b931b10bf83dcecb49e43bff5e87 Mon Sep 17 00:00:00 2001 From: Chung-Lin Tang Date: Fri, 8 Mar 2013 10:17:00 +0000 Subject: 2013-03-08 Chung-Lin Tang * 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. --- gas/read.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gas/read.c') diff --git a/gas/read.c b/gas/read.c index d65971cfbe..2df748a9ad 100644 --- a/gas/read.c +++ b/gas/read.c @@ -4087,10 +4087,9 @@ emit_expr (expressionS *exp, unsigned int nbytes) if (need_pass_2) return; - /* Grow the current frag now so that dot_value does not get invalidated - if the frag were to fill up in the frag_more() call below. */ frag_grow (nbytes); dot_value = frag_now_fix (); + dot_frag = frag_now; #ifndef NO_LISTING #ifdef OBJ_ELF -- cgit v1.2.1