From b6a138f0ec7670d58fc33045958f92c352df4a0e Mon Sep 17 00:00:00 2001 From: kvigor Date: Fri, 11 May 2001 16:38:00 +0000 Subject: [PATCH] tiny improvement to genRet git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@803 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/ds390/gen.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 (); -- 2.47.2