* config/tc-m68k.c (m68k_ip): Call frag_grow before adding a
authorIan Lance Taylor <ian@airs.com>
Fri, 3 Jan 1997 17:22:34 +0000 (17:22 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 3 Jan 1997 17:22:34 +0000 (17:22 +0000)
PCINDEX frag.  From Ronald F. Guilmette <rfg@monkeys.com>.

gas/ChangeLog
gas/config/tc-m68k.c

index fae59eec4e822ce4336b85238a41048f23a05ff2..b082fe4dc28619d38f98554d745101d6db846b48 100644 (file)
@@ -1,5 +1,8 @@
 Fri Jan  3 12:09:24 1997  Ian Lance Taylor  <ian@cygnus.com>
 
+       * config/tc-m68k.c (m68k_ip): Call frag_grow before adding a
+       PCINDEX frag.  From Ronald F. Guilmette <rfg@monkeys.com>.
+
        * config/tc-m68k.c (m68k_ip): Accept 'B' as a size for an
        immediate value.
        (md_assemble): If the size is 'B', set fx_signed.
index 7204ec31a6d4ae163dac371e2caaaef1ee951dd6..36c1f006f5e10219dd93b2d5d8233c511f9fd892 100644 (file)
@@ -2081,6 +2081,12 @@ m68k_ip (instring)
 #endif
                               )
                        {
+                         /* The code in md_convert_frag_1 needs to be
+                             able to adjust nextword.  Call frag_grow
+                             to ensure that we have enough space in
+                             the frag obstack to make all the bytes
+                             contiguous.  */
+                         frag_grow (14);
                          nextword += baseo & 0xff;
                          addword (nextword);
                          add_frag (adds (&opP->disp), offs (&opP->disp),