From 2156d0d747609c165fcc8b2e1a8240d74e035743 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 3 Jan 1997 17:22:34 +0000 Subject: [PATCH] * config/tc-m68k.c (m68k_ip): Call frag_grow before adding a PCINDEX frag. From Ronald F. Guilmette . --- gas/ChangeLog | 3 +++ gas/config/tc-m68k.c | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index fae59eec4e..b082fe4dc2 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,8 @@ Fri Jan 3 12:09:24 1997 Ian Lance Taylor + * config/tc-m68k.c (m68k_ip): Call frag_grow before adding a + PCINDEX frag. From Ronald F. Guilmette . + * 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. diff --git a/gas/config/tc-m68k.c b/gas/config/tc-m68k.c index 7204ec31a6..36c1f006f5 100644 --- a/gas/config/tc-m68k.c +++ b/gas/config/tc-m68k.c @@ -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), -- 2.34.1