* src/pic/pcode.c (ReuseReg): do not overlay the registers used for
authortecodev <tecodev@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 10 Aug 2008 17:37:34 +0000 (17:37 +0000)
committertecodev <tecodev@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 10 Aug 2008 17:37:34 +0000 (17:37 +0000)
  local variables if --no-overlay is given, workaround for #2023121

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@5209 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/pic/pcode.c

index 78943f9b25fc4c0bb418b1612def841ed121dd0e..dc519f48f42c60c9818ca31fb1f58ab475cabaae 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-08-10 Raphael Neider <rneider AT web.de>
+
+       * src/pic/pcode.c (ReuseReg): do not overlay the registers used for
+         local variables if --no-overlay is given, workaround for #2023121
+
 2008-08-08 Raphael Neider <rneider AT web.de>
 
        * src/pic16/genarith.c (genAddLit): fix structure access (#1888004)
@@ -14,7 +19,7 @@
          device/lib/pic/Makefile.rules, device/lib/ds390/Makefile.in,
          device/lib/ds400/Makefile.in, device/lib/hc08/Makefile.in,
          support/cpp/libcpp/lex.c,  doc/sdccman.lyx:
-         applied modified patsh 2038174: Add support for binary constants v2
+         applied modified patch 2038174: Add support for binary constants v2
          thanks Mauro Giachero
        * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.3
 
index 270f07293efbce177ccb25d679d1238fc2a89865..659c749aaec315db541977870077515122609fa7 100644 (file)
@@ -5342,7 +5342,7 @@ static unsigned register_reassign(pBlock *pb, unsigned idx, unsigned level)
 void ReuseReg(void)
 {
        pBlock  *pb;
-       if (!the_pFile) return;
+       if (options.noOverlay || !the_pFile) return;
        InitReuseReg();
        for(pb = the_pFile->pbHead; pb; pb = pb->next) {
                /* Non static functions can be called from other modules so their registers must reassign */