]> git.gag.com Git - fw/sdcc/blobdiff - src/ds390/gen.c
fixed bug #444971
[fw/sdcc] / src / ds390 / gen.c
index 0481331e46e0c9bf23d2e63970a57c600024d807..6be8ac2ae54277ea06ad742693ad95ff56f29eb2 100644 (file)
@@ -2943,9 +2943,7 @@ genEndFunction (iCode * ic)
        emitcode ("setb", "ea");
 
       /* if debug then send end of function */
-/*  if (options.debug && currFunc)  */
-      if (currFunc)
-       {
+      if (options.debug && currFunc) {
          _G.debugLine = 1;
          emitcode ("", "C$%s$%d$%d$%d ==.",
                    FileBaseName (ic->filename), currFunc->lastLine,
@@ -2983,7 +2981,7 @@ genEndFunction (iCode * ic)
        }
 
       /* if debug then send end of function */
-      if (currFunc)
+      if (options.debug && currFunc)
        {
          _G.debugLine = 1;
          emitcode ("", "C$%s$%d$%d$%d ==.",