Changeset 5c981b2 in rtems-testing


Ignore:
Timestamp:
Sep 12, 2012, 5:11:04 PM (7 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
2625df4
Parents:
6de122e
Message:

ObjdumpProcessor?.cc: Fix single NOP instructions for alignment bug

finalizeSymbol() must account for only a single instruction being
added at the end of a method for alignment purposes. This requires
using a different form of the erase() method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • covoar/ObjdumpProcessor.cc

    r6de122e r5c981b2  
    7676      // parameter to point to the first item to erase and the second
    7777      // parameter to point to the item beyond the last item to erase.
    78       instructions.erase( fnop, ++lnop );
     78      if ( fnop == lnop )
     79        instructions.erase( fnop );
     80      else
     81        instructions.erase( fnop, ++lnop );
    7982    }
    8083
Note: See TracChangeset for help on using the changeset viewer.