From: kvigor Date: Fri, 11 May 2001 16:38:00 +0000 (+0000) Subject: tiny improvement to genRet X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=b6a138f0ec7670d58fc33045958f92c352df4a0e;p=fw%2Fsdcc tiny improvement to genRet git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@803 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/ds390/gen.c b/src/ds390/gen.c index e2609d6b..8868a878 100644 --- a/src/ds390/gen.c +++ b/src/ds390/gen.c @@ -2843,10 +2843,15 @@ genRet (iCode * ic) } else { + /* Since A is the last element of fReturn, + * it is OK to clobber it in the aopGet. + */ l = aopGet (AOP (IC_LEFT (ic)), offset, - FALSE, FALSE, FALSE); + FALSE, FALSE, TRUE); if (strcmp (fReturn[offset], l)) + { emitcode ("mov", "%s,%s", fReturn[offset++], l); + } } } _endLazyDPSEvaluation ();