From: johanknol Date: Sat, 22 Mar 2003 17:23:15 +0000 (+0000) Subject: we don't need this anymore X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=46adfcf4c3d151aa4c5d5c4e8df46e6851f927e4;p=fw%2Fsdcc we don't need this anymore git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2407 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCicode.c b/src/SDCCicode.c index 18cf40ce..a94d664f 100644 --- a/src/SDCCicode.c +++ b/src/SDCCicode.c @@ -2058,12 +2058,6 @@ geniCodeAdd (operand * left, operand * right, int lvl) int isarray = 0; LRTYPE; -#if 0 - /* if left is an array then array access */ - if (IS_ARRAY (ltype)) - return geniCodeArray (left, right,lvl); -#endif - /* if the right side is LITERAL zero */ /* return the left side */ if (IS_LITERAL (retype) && right->isLiteral && !floatFromVal (valFromType (retype))) @@ -2540,16 +2534,10 @@ geniCodeDerefPtr (operand * op,int lvl) // just in case someone screws up wassert (IS_PTR (optype)); - /* if this is a pointer then generate the rvalue */ - if (IS_PTR (optype)) + if (IS_TRUE_SYMOP (op)) { - if (IS_TRUE_SYMOP (op)) - { - op->isaddr = 1; - op = geniCodeRValue (op, TRUE); - } - else - op = geniCodeRValue (op, TRUE); + op->isaddr = 1; + op = geniCodeRValue (op, TRUE); } /* now get rid of the pointer part */ @@ -2562,9 +2550,8 @@ geniCodeDerefPtr (operand * op,int lvl) retype = getSpec (rtype = copyLinkChain (optype->next)); } - /* if this is a pointer then outputclass needs 2b updated */ - if (IS_PTR (optype)) - setOClass (optype, retype); + /* outputclass needs 2b updated */ + setOClass (optype, retype); op->isGptr = IS_GENPTR (optype);