Small peephole fix
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 14 May 2001 10:35:42 +0000 (10:35 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 14 May 2001 10:35:42 +0000 (10:35 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@818 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCpeeph.c
src/mcs51/peeph.def

index fb207ff21767cc4380c8485e6882b243b3b1cc30..37b8634bcba38368d5878972564024889f53c83e 100644 (file)
@@ -531,12 +531,13 @@ bindVar (int key, char **s, hTab ** vtab)
 
   /* first get the value of the variable */
   vvx = *s;
-  /* the value is ended by a ',' or space or newline or null */
+  /* the value is ended by a ',' or space or newline or null or ) */
   while (*vvx &&
         *vvx != ',' &&
         !isspace (*vvx) &&
         *vvx != '\n' &&
-        *vvx != ':')
+        *vvx != ':' &&
+        *vvx != ')')
     {
       char ubb = 0;
       /* if we find a '(' then we need to balance it */
index 704380cac136d8b5afe50da7b61e3a130d457531..fd7f2cf59343472c6ac181bfba4eadbe40a1f140 100644 (file)
@@ -1762,13 +1762,3 @@ replace {
 } by {
        ; removed dec/inc pair
 }
-
-replace {
-       mov     dps, #0x00
-       mov     dp%1,a
-       mov     dps, #0x01
-} by {
-       ; Peephole 222 removed DPS abuse.
-       mov     dp%1,a
-        mov     dps, #0x01
-}