[PATCH] Fix asrm literal pool overflow test

Nick Clifton nickc@cambridge.redhat.com
Tue Jun 12 01:38:00 GMT 2001


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;



More information about the Binutils mailing list