* src/pic/gen.h: added prototypes emitpComment, popGetAddr and
authortecodev <tecodev@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 1 Jul 2005 02:06:44 +0000 (02:06 +0000)
committertecodev <tecodev@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 1 Jul 2005 02:06:44 +0000 (02:06 +0000)
commit25837611386183e136d41617166c3a81b52ce430
tree1e1f752a084ab6d7670bc795343509b21006ea5a
parent69e754f12a02df9b381d11f0b7a1d31434e90ad5
* src/pic/gen.h: added prototypes emitpComment, popGetAddr and
  debugging .asm-output macros FENRY + FEXIT
* src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
  way... I wonder...
* (emitpComment): NEW, printf to pCode
* (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
  offset handling
* (popGetAddr): NEW, variant of popGet to access an immediates
  high(er) bytes instead of the n'th byte of memory they reference,
  replaced popGet with popGetAddr where neccessary
* (genDataPointerGet): reactivated and fixed implementation
* (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
  accesses
* (genDataPointerSet): fixed multibyte assignments
* (genpic14Code): fixed --i-code-in-asm handling
* src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
* (genPlus): fixed index-out-of-bounds error
* src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
* src/pic/ralloc.c: added debugging output macro FENTRY2
* (spillThis): fixed indentation, enbraced for-body for clarity
* (rematStr): commented out as now unused
* (regTypeNum): commented out special spill case (overwrites
  arbitrary values)
* fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3792 4a8a32a2-be11-0410-ad9d-d568d2c75423
ChangeLog
src/pic/gen.c
src/pic/gen.h
src/pic/genarith.c
src/pic/pcode.c
src/pic/ralloc.c