aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/read.c b/gas/read.c
index 1cf5e9a..c6f04d0 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -3934,6 +3934,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 ();
#ifndef NO_LISTING