src/mcs51/gen.c: add \n for labels only, not DOS/WIN drives such as c:\mydir
authorjesusc <jesusc@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Wed, 4 Aug 2004 13:02:18 +0000 (13:02 +0000)
committerjesusc <jesusc@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Wed, 4 Aug 2004 13:02:18 +0000 (13:02 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3419 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/mcs51/gen.c

index d6b862f60babdb93edb1a89242dff22206e3c6ce..1821e22fc0f01799fb188a9c994e41f2a831ca0c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
+
+       * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
+         such as c:\mydir.
+
 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
 
        * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
index a1f6241f1b975780d6ff4102b4ffaa792a3f4597..4d72ffe4aa7d857afb0ca3244308dbbc729083b2 100644 (file)
@@ -6319,7 +6319,8 @@ genInline (iCode * ic)
         }
       else
         {
-          if (*bp == ':')
+          /* Add \n for labels, not dirs such as c:\mydir */
+          if ( (*bp == ':') && (isspace(bp[1])) )
             {
               bp++;
               *bp = '\0';