Fixed the hairy inline 'Y' bug in SDCC.y
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 4 Feb 2001 17:09:37 +0000 (17:09 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 4 Feb 2001 17:09:37 +0000 (17:09 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@576 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/ds390/gen.c

index 9ff7e1148f6419d5cd3df1e0c38cdc552dc22034..19f0f08a29e5bac187e05e6ea61337577042f79b 100644 (file)
@@ -130,25 +130,7 @@ static void emitcode (char *inst,char *fmt, ...)
        if (fmt && *fmt)
            sprintf(lb,"%s\t",inst);
        else
-#if 1
-       {
-         /* for some reason the parser throws in a mysterious "Y" at 
-            the end of inline assembly code.
-            Do a make in device/lib and you know all about it.
-         */
-         int i=0;
-         while(inst[i]==' ')
-           i++;
-         if (strcmp(&inst[i],"Y")==0) {
-           fprintf (stderr, "===> BEWARE of the inline Y bug hack <===\n");
-           return;
-         } else {
-           sprintf(lb,"%s",inst);
-         }
-       }       
-#else
            sprintf(lb,"%s",inst);
-#endif
         vsprintf(lb+(strlen(lb)),fmt,ap);
     }  else
         vsprintf(lb,fmt,ap);