From: johanknol Date: Sat, 1 Sep 2001 09:28:35 +0000 (+0000) Subject: the --stack-auto crash fix wasn't so useless after all. X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=8c4f39d917745a10be6101b791a46ee5c6a82e40;p=fw%2Fsdcc the --stack-auto crash fix wasn't so useless after all. git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1202 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/mcs51/gen.c b/src/mcs51/gen.c index 27b8088c..253f52b9 100644 --- a/src/mcs51/gen.c +++ b/src/mcs51/gen.c @@ -6958,7 +6958,8 @@ genNearPointerGet (operand * left, else rname = aopGet (AOP (left), 0, FALSE, FALSE); - aopOp (result, ic, FALSE); + //aopOp (result, ic, FALSE); + aopOp (result, ic, result?TRUE:FALSE); /* if bitfield then unpack the bits */ if (IS_BITVAR (retype))