* config/tc-m68k.c (m68k_ip): Call frag_grow before adding a

PCINDEX frag.  From Ronald F. Guilmette <rfg@monkeys.com>.
This commit is contained in:
Ian Lance Taylor
1997-01-03 17:22:34 +00:00
parent a3ecb49f4b
commit 2156d0d747
2 changed files with 9 additions and 0 deletions

View 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.

View 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),