This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] Fix asrm literal pool overflow test
- To: binutils at sources dot redhat dot com
- Subject: [PATCH] Fix asrm literal pool overflow test
- From: Nick Clifton <nickc at cambridge dot redhat dot com>
- Date: 12 Jun 2001 10:37:29 +0100
Hi Guys,
I have applied the following small patch to fix the code that tests
for overflowing the literal pool on the ARM port of GAS.
Patch applied to mainline and 2.11 branch.
Cheers
Nick
2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
* config/tc-arm.c: Fix test for overflow of literal pool.
Index: gas/config/tc-arm.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gas/config/tc-arm.c,v
retrieving revision 1.118.2.15.2.17
diff -p -r1.118.2.15.2.17 tc-arm.c
*** tc-arm.c 2001/05/11 10:04:22 1.118.2.15.2.17
--- tc-arm.c 2001/06/12 08:24:14
*************** add_to_lit_pool ()
*** 1256,1262 ****
if (lit_count == next_literal_pool_place) /* new entry */
{
! if (next_literal_pool_place > MAX_LITERAL_POOL_SIZE)
{
inst.error = _("Literal Pool Overflow");
return FAIL;
--- 1256,1262 ----
if (lit_count == next_literal_pool_place) /* new entry */
{
! if (next_literal_pool_place >= MAX_LITERAL_POOL_SIZE)
{
inst.error = _("Literal Pool Overflow");
return FAIL;