Give the argument of isCommutativeOp() the correct type.
[fw/sdcc] / src / SDCCpeeph.c
index dfd7d84cd3372d46ed12da9582c7ee56fdc53d68..070d902338c5dbcb5ac69baa2ca1199393f6d63f 100644 (file)
@@ -600,6 +600,8 @@ bindVar (int key, char **s, hTab ** vtab)
              if (*vvx == ')')
                ubb--;
            }
+         // include the trailing ')'
+         *vv++ = *vvx++;
        }
       else
        *vv++ = *vvx++;
@@ -1009,6 +1011,12 @@ peepHole (lineNode ** pls)
   lineNode *mtail = NULL;
   bool restart;
 
+#if !OPT_DISABLE_PIC
+  /* The PIC port uses a different peep hole optimizer based on "pCode" */
+  if (TARGET_IS_PIC)
+    return;
+#endif
+
   assert(labelHash == NULL);
 
   do