From d8f84b3eba053741163036830fcd4dbbff1a492f Mon Sep 17 00:00:00 2001 From: tecodev Date: Sun, 10 Aug 2008 17:37:34 +0000 Subject: [PATCH] * src/pic/pcode.c (ReuseReg): do not overlay the registers used for 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 | 7 ++++++- src/pic/pcode.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 78943f9b..dc519f48 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-08-10 Raphael Neider + + * 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 * 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 diff --git a/src/pic/pcode.c b/src/pic/pcode.c index 270f0729..659c749a 100644 --- a/src/pic/pcode.c +++ b/src/pic/pcode.c @@ -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 */ -- 2.47.2