diff options
author | Nick Clifton <nickc@redhat.com> | 2008-11-14 13:03:25 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2008-11-14 13:03:25 +0000 |
commit | 4bc251014580513b8b4e3e4a5d1547ca2442644e (patch) | |
tree | 07f64ead3c07ab48e84a8b2815bf01069484fac6 /gas/read.c | |
parent | d387240a63cfb5562d2fd7c6273bbc62f4383284 (diff) | |
download | gdb-4bc251014580513b8b4e3e4a5d1547ca2442644e.zip gdb-4bc251014580513b8b4e3e4a5d1547ca2442644e.tar.gz gdb-4bc251014580513b8b4e3e4a5d1547ca2442644e.tar.bz2 |
* read.c (emit_expr): Grow frag before filling it so that
dot_value remains valid.
Diffstat (limited to 'gas/read.c')
-rw-r--r-- | gas/read.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |